Preheat your oven to 375°F (190°C) and grease a baking dish.
In a mixing bowl, combine the corn kernels, cornmeal, flour, baking powder, and salt.
In a separate bowl, whisk together the melted butter (or oil), milk, and sugar (if using).
Pour the wet ingredients into the dry ingredients and stir until well combined. If desired, add any additional seasonings or mix-ins.
Transfer the mixture to the greased baking dish and spread it out evenly.
Bake in the preheated oven for 30-35 minutes, or until the top is golden brown and the casserole is set.
Remove from the oven and let it cool for a few minutes before serving.
This version of corn casserole still provides a delicious and satisfying dish without relying on creamed corn. Feel free to experiment with different add-ins or seasonings to customize the flavor to your liking.