Preheat your oven to 350°F. Lightly grease an 8×8 inch baking dish with butter or cooking spray.
In a medium bowl, whisk together the dry ingredients: all-purpose flour, cornmeal, sugar, baking powder, and salt.
In a separate bowl, combine the wet ingredients: sour cream, melted butter, and eggs. Beat until well mixed.
Pour the wet ingredients into the bowl with the dry ingredients. Stir just until combined - don't overmix.
Fold in the corn kernels, distributing them evenly throughout the batter.
Pour the mixture into your prepared baking dish, spreading it evenly with a spatula.
Bake in the preheated oven for 40-45 minutes. The casserole is done when the top is golden brown and feels firm to the touch. The center may still be slightly moist, which is normal.
Remove from the oven and let stand for 5 minutes before serving.
Serve warm or at room temperature. If desired, top with a dollop of sour cream and sprinkle with fresh herbs like chives or parsley.
