Preheat your oven to 350°F (175°C).
In a large mixing bowl, combine the cooked rice, mashed bananas, coconut milk, sugar, and salt.
Mix until well combined. If using, stir in the vanilla extract and ground cinnamon for added flavor.
If desired, fold in the shredded coconut for extra texture and flavor.
Grease a baking dish or line it with parchment paper.
Pour the rice mixture into the prepared dish and spread it evenly.
Bake in the preheated oven for about 30-40 minutes, or until the top is golden brown and the cake is set.
Allow the Banana Rice Cake to cool in the dish for a few minutes before cutting into squares.
Enjoy your meal!