To prevent the edges from burning, you can cover the casserole with foil for the first 20 minutes of baking, then remove the foil for the remaining time.