Preheat oven to 350 degrees F (175 degrees C). Grease and flour an 8-inch square baking pan.
In a medium bowl, sift together the flour, baking powder, cinnamon and salt.
In a large bowl, cream together the butter and sugar until light and fluffy. Beat in the eggs one at a time, then stir in the vanilla. Beat in the sweet potatoes.
Stir in the flour mixture until just incorporated. Fold in the walnuts if desired. Spread batter into prepared pan.
Bake for 30 to 35 minutes in the preheated oven. Cake is done when it springs back to the touch.
Let cool in pan for at least 10 minutes before turning out onto a wire rack to cool completely.
Interesting Facts
Sweet potatoes have been used in desserts for centuries.
This cake is a great way to use up leftover sweet potatoes.
You can make this cake with any type of sweet potato.
This cake is a great alternative to traditional butter cakes.