Preheat your oven to 350°F (175°C).
Grease a baking dish with butter or cooking spray.
In a mixing bowl, combine the corn, milk, and eggs; mix well.
Stir in the melted butter and sugar until fully incorporated.
In a separate bowl, whisk together the cornmeal, baking powder, and salt.
Gradually add the dry ingredients to the wet mixture, stirring until combined.
Fold in the shredded cheese if desired.
Pour the mixture into the prepared baking dish.
Bake for 35-45 minutes, or until the top is golden and set.
Let cool slightly before serving, garnished with fresh herbs.