Preheat your oven to 400°F (200°C).
Peel and cube sweet potatoes, toss with olive oil, salt, pepper, and smoked paprika. Roast for 25-30 minutes.
In a skillet, heat olive oil and sauté chopped onion for 5 minutes, then add minced garlic and cook for 1 more minute.
In a bowl, combine cooked sweet potatoes, sautéed onions and garlic, drained black beans, corn, bell pepper, cumin, oregano, turmeric, salt, and pepper.
Spread rice in a greased baking dish, pour vegetable broth over it, then layer sweet potato mixture on top. Add cheese if using.
Cover with foil and bake for 30-35 minutes. Remove foil in the last 10 minutes.
Let cool for a few minutes, drizzle lime juice on top, and garnish with cilantro or parsley before serving.