Preheat your oven to 350°F.
Grease a 9 × 13-inch baking dish with cooking spray to prevent sticking.
In a large bowl, combine corn kernels, cream-style corn, and melted butter.
Add eggs and mix until well combined.
Stir in the corn muffin mix, Cheddar cheese, green chiles, garlic powder, salt, and black pepper.
Mix until all ingredients are well incorporated.
Pour the mixture into your prepared baking dish.
Spread it out evenly with a spatula.