Preheat your oven to 350°F / 175°C. Generously butter a medium-sized, 1. 5-quart casserole dish.
In a large bowl, whisk the eggs and flour together until a smooth, lump-free paste forms.
Gradually whisk in the heavy cream and milk until fully combined.
Stir in the salt, white pepper, and sugar.
Fold in the fresh corn kernels, melted butter, grated Cheddar cheese, and chopped green chilis.
Stir until everything is evenly distributed.
Pour the corn mixture into your prepared casserole dish. Create a water bath by placing the casserole dish inside a larger roasting pan. Carefully pour hot water into the larger pan until it comes halfway up the sides of the casserole dish.
Carefully transfer the pan to the preheated oven.
Bake for 50 to 55 minutes, or until the pudding is set, slightly puffed, and golden brown on top. The center should be just barely set when gently shaken.
Remove the roasting pan from the oven. Carefully lift the casserole dish out of the water bath and let it rest for 5-10 minutes before serving hot.
Don't skip the water bath! It's essential for creating a gentle, even heat that results in a creamy, custardy texture and prevents the pudding from cracking or becoming rubbery.
Adjust the heat to your liking. Use mild canned green chilis for a gentle warmth, or swap in finely chopped jalapeños (with or without seeds) for a spicier kick.