Steam sweet potato chunks until soft enough to easily mash.
Mash sweet potato in a bowl. Add butter, and mix well with mixer. Stir in sugar, sour cream (or milk), eggs, nutmeg, cinnamon and vanilla. Beat on medium speed until mixture is smooth. Pour filling into an unbaked pie crust.