**Cook Sweet Potatoes:** Place the cubed sweet potatoes in a large pot, cover with water, and bring to a boil. Cook for 15–20 minutes, or until the potatoes are fork-tender. Drain and transfer to a large mixing bowl.
**Mash Potatoes:** Mash the sweet potatoes until smooth using a potato masher or hand mixer.
**Mix Base Ingredients:** Add melted butter, granulated sugar, brown sugar, milk, eggs, vanilla extract, cinnamon, nutmeg, and salt to the mashed sweet potatoes. Mix until well combined and creamy.
**Assemble Casserole:** Pour the sweet potato mixture into a greased 9x13-inch baking dish, spreading it out evenly.
**Add Topping:** Sprinkle the top with mini marshmallows, and if desired, add chopped pecans for extra crunch.
**Bake:** Preheat your oven to 350°F (175°C). Bake the casserole for 20–25 minutes, or until the marshmallows are golden brown and the edges are bubbling.
**Serve:** Let cool slightly before serving.