The best way to prevent the tater tots from getting soggy is to keep the tater tots in the freezer until just before topping. Further, it's important to keep the tater tots in a single layer on top of the casserole. Piling them on top will prevent them from browning properly.