Would any large glass dish work as a casserole dish?

I really want to try and make a casserole but I don’t have a dish. I have a 8 by 8 cake pan and I have a few glass dish things that look like casserole dishes but I’m afraid they will explode in the oven or something.