01 -
Preheat your oven to 350°F and grease a 2-quart baking dish.
02 -
In a medium pot over low heat, melt the cream cheese and butter together until smooth and creamy. Stir in the milk until well combined.
03 -
Add the salt, black pepper, thawed corn, and cayenne pepper (if using) to the pot. Stir until fully mixed.
04 -
Pour the mixture into the prepared baking dish, spreading it out evenly. Top with a layer of grated sharp cheddar cheese.
05 -
Place the casserole in the oven and bake for 20 minutes, or until golden brown and bubbling.
06 -
Remove the casserole from the oven and let it cool for a few minutes before serving.