Preheat and prep: Heat your oven to 375°F (190°C).
Grease a 9x13-inch baking dish. Set cream cheese on the counter to soften.
Sauté aromatics: In a large skillet, warm olive oil over medium heat. Add onion and a pinch of salt.
Cook 4–5 minutes until translucent. Stir in garlic and cook 30 seconds until fragrant.
Bloom the spices: Add cumin, chili powder, coriander, and oregano. Stir for 30–60 seconds to toast the spices.
This step deepens flavor.
Build the sauce: Pour in chicken broth and bring to a gentle simmer. Add cream cheese. Whisk or stir until smooth and creamy, 2–3 minutes.
Reduce heat if it starts to boil.
Add the good stuff: Stir in green chiles, corn, and half of the shredded cheese. Mix until melted and combined.
Season and brighten: Add sour cream, lime juice, salt, and pepper. Taste and adjust.
You want a well-seasoned, slightly tangy sauce.
Combine with chicken and beans: In a large bowl, mix shredded chicken and white beans. Pour the sauce over and fold together until evenly coated. Stir in cilantro if using.
Assemble the casserole: Spread the mixture into the prepared baking dish.
Smooth the top. Sprinkle the remaining cheese evenly over the surface.
Bake: Bake uncovered for 20–25 minutes, until bubbling at the edges and the top is melted and lightly golden.
Rest and serve: Let it rest for 5–10 minutes to set slightly. Add toppings like jalapeños, avocado, tortilla strips, or more cilantro.
Serve with lime wedges.