In a large bowl, whisk together the sugar, flour, cornmeal, and baking powder. Add 2 tablespoons melted butter, 1 egg, and heavy cream. Mix well. Stir in the corn kernels, Parmesan, and a pinch of pepper. Transfer to the prepared dish and bake until top is golden brown and center is set, about 30 minutes. Cover to keep warm.