Freeze sweet potato casserole without the pecan topping. Store the prepared mashed sweet potatoes in a freezer-safe bag or airtight container and freeze for up to six months. Thaw them in the refrigerator overnight. On the day of serving, transfer the mashed sweet potatoes to a baking dish, add the pecan topping, and bake according to the recipe.