Preheat your oven to 350°F (175°C). This ensures that your cakes bake evenly.
Grease and flour two 9-inch round cake pans to prevent sticking. You can also line the bottoms with parchment paper for extra assurance.
In a large mixing bowl, whisk together the all-purpose flour, coarse salt, baking soda, baking powder, cinnamon, nutmeg, granulated sugar, brown sugar, and cornstarch. Make sure the mixture is well combined.
In another bowl, mix together the mashed bananas, eggs, vanilla extract, and neutral oil. Whisk until fully combined.
Pour the wet mixture into the dry ingredients. Mix gently with a spatula until just combined. Be careful not to overmix – a few lumps are okay!
Carefully fold in the drained crushed pineapple and chopped pecans into the batter. This adds delicious texture and flavor.
Divide the batter evenly between the prepared cake pans. Bake in the preheated oven for 25-30 minutes or until a toothpick inserted into the center comes out clean.
Once baked, remove the cakes from the oven and let them cool in the pans for about 10 minutes. Then, turn them out onto a wire rack to cool completely.
In a large mixing bowl, beat together the softened cream cheese and butter until smooth. Gradually add the powdered sugar and continue to beat until fluffy. Mix in the vanilla extract.
Once the cakes are completely cooled, place one layer on a serving platter. Spread a generous amount of cream cheese frosting on top. Place the second layer on top and frost the top and sides of the cake with the remaining frosting.