Put the butter in an 8 by 8 baking dish and place in the oven. Turn oven on to 350 degrees. The butter will melt and start to brown as the oven preheats. While the butter melts, prepare the pudding.
Puree 3 cups of the corn kernels in a food processor.
In a large mixing bowl, whisk together the eggs and cream. Whisk in the flour, salt, and pepper. Stir in the pureed corn, the whole kernels, cheese, chilies, and green onions. Pour the batter into the hot baking dish with the melted butter and bake for 40 minutes. Top with the panko and bake for another 5-10 minutes or until the panko is golden brown.