Preheat the oven to 375 degrees Fahrenheit (190 degrees Celsius) and grease a 9x13 inch baking dish.
Layer the sliced sweet potatoes evenly into the prepared baking dish.
In a small saucepan over medium heat, combine the butter, brown sugar, cinnamon, nutmeg, ginger, and salt, stirring until the butter is melted and sugar is dissolved.
Remove the syrup from the heat and stir in the vanilla extract.
Pour the syrup mixture over the sweet potatoes, ensuring each slice is thoroughly coated.
Cover the dish with aluminum foil and bake for 30 minutes.
Remove the foil and baste the potatoes with the liquid from the bottom of the dish.
Bake uncovered for an additional 15 minutes or until the sweet potatoes are tender and the glaze has thickened.
Spread the marshmallows over the top and broil for 1 to 2 minutes until golden brown and toasted.
Allow the dish to rest for 5 minutes before serving to let the glaze set.