Preheat oven to 375 degrees F.
In a saute pan, over a low flame, place the chopped bacon and cook until it's crisp. Remove it from the pan, reserving the fat. Add the butter to it and saute the onions until translucent. Add the corn kernels, salt, and cayenne pepper and saute a few minutes more to cook the corn. Remove from the heat.
In a bowl, whisk the eggs well then add the cream and milk and whisk some more until well combined. Add the pepper, nutmeg, Parmesan, and cornmeal and whisk to combine. Stir in the bacon, onion, and corn mixture and pour into a greased 6-cup casserole dish. Bake at 375 degrees F for 1 hour. Serve immediately.