Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack to cool completely.
Once the cakes are cool, frost them with cream cheese frosting.
Notes:
For a nut-free option, omit the walnuts.
Ensure the pineapple is well-drained to avoid excess moisture.