-
1
Preheat oven to 350 degrees F. Adjust the position of the rack to the center of the oven.
-
2
Grease and flour 2 (9-inch) pans or 3 (8-inch) pans.
-
3
Set aside.
-
4
In a large bowl, stir together the flour, baking soda, baking powder, salt, cinnamon, nutmeg, and granulated sugar.
-
5
Set aside.
-
6
In the bowl of a mixer, cream margarine and brown sugar on low speed, and then increase speed to medium and beat until well-combined.
-
7
Gradually add the dry ingredients and beat on low speed until just incorporated.
-
8
Add eggs, 1 at a time, beating well after each egg and scraping down the sides of the bowl after the addition of each egg.
-
9
Add vanilla, sweet potatoes, pineapple, raisins, and walnuts and blend on low speed until thoroughly mixed.
-
10
Pour batter into pans and smooth the surface with a metal spatula.
-
11
Bake for 1 hour to 1 hour and 10 minutes, or until a toothpick inserted in center comes out clean; when you touch the center of the cake, it should spring back.
-
12
Allow to cool in pans for 10 minutes, and then invert onto a rack and cool completely.
-
13
For icing: In the bowl of an electric mixer, beat cream cheese and butter on medium speed until smooth.
-
14
Add vanilla and beat until incorporated.
-
15
Gradually add sugar and beat on low speed until smooth.
-
16
Icing the cake: Place 1 cake layer, top-side down, on a cake platter.
-
17
Using a metal spatula, spread a layer of cream cheese frosting evenly over the top of the cake.
-
18
Take the next layer and place it on top, rounded-side up.
-
19
Frost the top and sides of the cake with the remaining frosting.
-
20
The cake should be refrigerated for about 1 hour to make sure the layers are set.
-
21
Sprinkle chopped walnuts on top of cake, if desired.