It's important to drain the broccoli very well after cooking. If it's still quite wet, or if it's still frozen, the excess water will cause a runny casserole.