Sweet Potato Casserole

6 pounds moist sweet potatoes, such as ruby or garnet yams (about 6 large potatoes)
8 tablespoons (1 stick) unsalted butter
8 sprigs fresh thyme and/or sage
1 (4-inch) knob peeled fresh ginger, finely grated (about 1 tablespoon)
1/4 cup buttermilk or sour cream
Kosher salt
2 cups mini marshmallows

Adjust oven rack to center position. Place two large sheets of heavy-duty aluminum foil on a work surface. Working with one sheet at a time, place half of potatoes in center. Fold up foil and crimp edges to seal tightly. Repeat on second sheet with rest of potatoes. Transfer pouches to a rimmed baking sheet and place in oven. Set oven to 300°F. Roast until a thin skewer inserted into the potatoes shows no resistance, about 2 hours. Remove from oven and set aside until cool enough to handle.

Meanwhile, melt butter in a medium saucepan over medium-low heat, swirling gently until particles are pale golden brown and smell nutty. Add herb sprigs; herbs may cause brown butter to splatter at first, so take care. Swirl herbs in the brown butter off-heat until frizzled. Set aside.

Peel sweet potatoes and discard skins. Add flesh to large bowl or the bowl of a stand mixer. Beat with the whisk attachment or a handheld mixer until smooth and fluffy, about 2 minutes. Strain brown butter into potatoes, discarding frizzled herbs. Beat in ginger, then beat in buttermilk or sour cream. Season to taste with salt.

When ready to finish dish, preheat oven to 375°F. Scrape potatoes into a 2-quart baking or casserole dish, smoothing surface with a rubber spatula. Bake until heated through, about 30 minutes. Increase oven temperature to 475°F and top with mini marshmallows. Bake until marshmallows are melted and lightly browned, about 3 minutes (keep an eye on them, as they can brown and then burn very quickly). Serve.