Preheat your oven to 350°F.
In a medium-sized saucepan, melt the unsalted butter over medium heat.
Once the butter is melted, add in the corn, heavy cream, salt, and black pepper.
Stir all the ingredients together until well combined.
Let the mixture simmer for about 5 minutes or until the corn is heated through.
Transfer the mixture to a baking dish and top with shredded cheese.
Bake for 10-15 minutes, or until the cheese is melted and golden brown.
Once done, remove from the oven and let it cool for a few minutes.
Serve hot, garnished with fresh parsley if desired.