Preheat the oven to 350 degrees and grease an 8x8 baking dish.
In a large mixing bowl, stir together the cream-style corn, drained whole kernel corn, heavy cream, eggs, sugar, flour, salt, and black pepper until smooth.
Pour in the melted butter and mix until fully combined.
Transfer the mixture to the prepared baking dish and spread it evenly.
Bake for 45 to 50 minutes until the center sets and the top turns lightly golden.
Remove from the oven and let it rest for 5 minutes before serving.