01 - Preheat the oven to 350°F (180°C). Grease a 2-quart baking dish.
02 - Place sweet potatoes in a large pot and cover with water. Bring to a boil, then reduce heat and simmer for 15 to 20 minutes until tender. Drain thoroughly.
03 - Transfer sweet potatoes to a mixing bowl. Add milk, butter, brown sugar, eggs, vanilla, cinnamon, nutmeg, and salt. Mash until smooth and well blended.
04 - Spread the mashed sweet potato mixture evenly in the prepared baking dish.
05 - Sprinkle chopped pecans over the sweet potato layer, if using.
06 - Bake uncovered for 25 minutes.
07 - Remove from oven, evenly distribute mini marshmallows over the surface, then return to oven for 10 to 15 minutes until the marshmallows are golden and toasted.
08 - Allow the casserole to rest for 5 minutes before serving.