Ensure that you use enough liquid (such as cream of mushroom soup and vegetable stock) and don't overcook the rice. Covering the casserole while baking can also help retain moisture.