Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans.
In a large bowl, whisk together the flour, sugar, cinnamon, baking soda, and salt.
Add the mashed bananas, crushed pineapple, beaten eggs, vegetable oil, and vanilla extract to the dry ingredients. Mix until well combined.
Fold in the chopped pecans if using.
Divide the batter evenly between the prepared cake pans.
Bake for 25 to 30 minutes, or until a toothpick inserted into the center of the cakes comes out clean.
Allow the cakes to cool in the pans for 10 minutes, then turn them out onto a wire rack to cool completely.
To make the frosting: In a medium bowl, beat the cream cheese and butter together until smooth. Gradually add the powdered sugar, and beat until smooth. Stir in the vanilla extract.
Frost the cooled cakes with the cream cheese frosting. Stack the cakes, then frost the top and sides.
Decorate with additional chopped pecans or fruits if desired.