Preheat your oven to 375°F (190°C). Lightly grease a 9 × 13-inch baking dish with olive oil or cooking spray and set aside.
Heat the olive oil in a large skillet over medium heat. Add the chopped onion and diced bell peppers. Cook for 4–5 minutes, stirring occasionally, until the vegetables begin to soften. Add the minced garlic and cook for another 30 seconds until fragrant.
Stir in the ground cumin, chili powder, smoked paprika, dried oregano, salt, and black pepper. Cook for about 30 seconds to release the aroma of the spices.
Stir in the black beans, corn kernels, diced tomatoes with their juices, and tomato sauce. Mix well so the vegetables are evenly coated in the seasoned tomato mixture.
Add the rinsed uncooked rice and vegetable broth. Stir everything together, making sure the rice is evenly distributed and submerged in the liquid. Bring the mixture to a gentle simmer, then remove it from the heat. Stir in the fresh lime juice.
Pour the rice and vegetable mixture into the prepared baking dish. Spread it into an even layer, making sure the rice is distributed throughout the dish.
Cover the baking dish tightly with aluminum foil to trap the steam. Bake for approximately 40–45 minutes, or until the rice is tender and most of the liquid has been absorbed.
Carefully remove the foil and check that the rice is fully cooked. If it is still firm, add a little warm vegetable broth, cover again, and continue baking until tender. Once cooked, sprinkle the cheddar and Monterey Jack cheese evenly over the top.
Return the uncovered casserole to the oven for another 5–8 minutes, until the cheese has melted and becomes lightly golden in spots.
Remove the casserole from the oven and let it rest for 5–10 minutes. Scatter chopped cilantro and green onions over the top. Add diced avocado and serve with lime wedges or sour cream.