How to cook rice in an electric oven meant for baking cakes?
I make rice in the oven if I'm making a large meal and don't have a burner to spare for the rice. I bake it in an enamel cast iron Dutch oven (you can also use aluminum or stainless steel trays / hotel pans covered tightly with aluminum foil) using the same water-to-rice ratio (2:1) as when I make it on the stove. Cook at 350°F / 177°C for approximately 20-30 minutes, remove from the oven and let it sit, covered, for another 10 minutes. Fluff with a fork and serve!

(Note: The cooking time will depend on whether you pre-soak the rice and also how good your oven is at maintaining a constant temperature. You can check if it needs more time by wiggling the pot/tray a little; if you hear water sloshing around, it needs more time, but if it feels like a solid mass, it's probably done.)

The only problem you might have with this: sometimes the rice on the bottom of the pot gets dried out and sticks to the pot. You can avoid this by boiling the water before you add the rice (on the stove, but I guess you could do it in the oven, too. If you have an electric kettle and you're making a relatively small amount of rice, you can heat the water in the kettle and just pour it over the rice, too).