To prevent your egg casserole from drying out, make sure you don't overcook it. Overcooking can cause the eggs to become rubbery and dry. You can also add a little extra liquid like milk or cream to the egg mixture before baking to keep it moist.