Preheat your oven to 350°F (175°C).
In a large mixing bowl, combine the corn, milk, and heavy cream.
Whisk in the eggs, sugar, salt, and black pepper until well blended.
Add the baking powder and melted butter, mixing until combined.
Fold in the grated cheese if desired.
Pour the mixture into a greased baking dish.
Bake for about 45 minutes, or until set and golden on top.
Check for doneness by inserting a knife in the center; it should come out clean.
Remove from the oven and let it cool for a few minutes before serving.
Serve warm as a side dish and enjoy!