Preheat the oven to 375°F; lightly grease a 2.5-quart casserole dish with butter.
Add the sweet potatoes to a medium pot and cover with cold water by 2 inches. Cover the pot, bring up to a boil, and then turn the heat down and cook the potatoes with the lid ajar until they’re soft and easily mashable, about 5 to 7 minutes. Drain.
Mash or whip the potatoes (depending on your preference for lumps), and then mix in the butter, almond butter, cream, egg, pumpkin pie spice, vanilla (if using), and salt.
Spread the potatoes out in the prepared dish and top with the marshmallows.
Bake until the potatoes are hot throughout and the marshmallows start to melt and turn light golden brown, about 20 to 25 minutes. Serve warm.