Preheat and prep: Heat your oven to 375°F (190°C). Grease a 9x13-inch baking dish.
Cook the base: If using pasta, cook it in salted water until just al dente, then drain.
If using rice, have it cooked and fluffed.
Sauté aromatics: In a large skillet, warm the olive oil over medium heat. Add onion and bell pepper. Cook 4–5 minutes until softened and lightly golden.
Season: Stir in chili powder, cumin, smoked paprika, garlic powder, onion powder, and optional chipotle.
Toast the spices for 30 seconds until fragrant.
Build the mix: Add black beans, corn, green chiles, and diced tomatoes to the skillet. Stir and let it bubble for 2–3 minutes. Season with salt and pepper.
Make it creamy: Turn off the heat.
Stir in sour cream (or Greek yogurt), 1 cup shredded cheese, lime juice, and chicken broth. Mix until smooth and creamy. Adjust salt, pepper, and lime to taste.
Combine: In a large bowl, combine cooked chicken and pasta or rice with the skillet mixture.
Fold gently so everything is evenly coated.
Assemble: Spread the mixture into the baking dish. Top with the remaining 1 cup cheese.
Bake: Place on the middle rack and bake 18–22 minutes, until the casserole is hot and the cheese is melted and lightly browned at the edges.
Finish and serve: Let it rest 5–10 minutes to set. Sprinkle with chopped cilantro and add any optional toppings.
Serve warm.