First, make sure to drain as much moisture from the vegetables as possible before adding them to the casserole mix. Also, cook the casserole until it is golden brown and bubbling on top so that creates a crispy crust that prevents sogginess and any excess liquid cooks off.