You can certainly freeze it in whatever glass or ceramic casserole dish or metal pan you plan to bake it in, provided it is safe for both the freezer and the oven, or to be more specific, freezer-to-oven, which is the case for borosilicate glass such as Pyrex.