Preheat your oven to 350°F and grease a 9x13-inch baking dish with cooking spray.
In a large mixing bowl, beat together the softened cream cheese, sour cream, and mayonnaise until smooth and creamy.
Stir in the corn, green chiles, 1 cup of the Mexican blend cheese, cotija cheese, chili powder, garlic powder, and cayenne pepper (if using). Season with salt and pepper to taste.
Transfer the mixture to your prepared baking dish and spread it out evenly.
Sprinkle the remaining 1 cup of Mexican blend cheese over the top.
Bake uncovered for 30-35 minutes, until the casserole is bubbly and the cheese on top is golden.
Let it cool for 5 minutes, then garnish with fresh cilantro and serve with lime wedges on the side for squeezing.