01 - Preheat the oven to 375°F (190°C) and grease a 9x13-inch (23x33 cm) baking dish.
02 - In a medium skillet over medium heat, cook the diced onion until soft, about 3 minutes. Add minced garlic and cook for one more minute. Stir in black beans and corn, then remove from heat.
03 - In a large bowl, mix shredded chicken, sautéed vegetables, and 1/2 cup of enchilada sauce until evenly combined.
04 - Pour 1/2 cup enchilada sauce into the prepared baking dish and spread evenly across the bottom.
05 - Arrange 4 tortillas over the sauce, overlapping as needed. Top with half the chicken mixture and sprinkle with 3/4 cup shredded cheddar cheese.
06 - Repeat the layering with 4 tortillas, the remaining chicken mixture, and another 3/4 cup cheddar cheese.
07 - Add a final layer of 4 tortillas, the remaining enchilada sauce, and the remaining shredded cheddar cheese along with Monterey Jack cheese if using.
08 - Cover the dish with aluminum foil and bake for 20 minutes.
09 - Remove the foil and bake an additional 10 to 15 minutes until the casserole is bubbly and golden on top.
10 - Allow the casserole to rest for 10 minutes before slicing. Garnish with chopped cilantro, sliced avocado, and lime wedges. Serve with sour cream.