Roast the sweet potatoes. Heat the oven to 400°F. Roast 4½ lb scrubbed, pierced sweet potatoes on a lined rimmed tray for 50–75 minutes, until completely soft. Peel and let the flesh cool until warm, not hot. If using the potatoes roasted ahead, use all the flesh from that batch.
Brown the filling butter. Melt ½ cup salted butter in a light-colored saucepan over medium heat. Cook, swirling, until the milk solids are golden brown and smell nutty, about 4–7 minutes. Immediately pour into a heatproof bowl, including the brown bits; cool slightly.
Whip the filling smooth. Beat the potato flesh with the browned ½ cup butter, ½ cup dark brown sugar, ¼ cup maple syrup, ¼ cup heavy cream, 2 eggs, 2 tsp vanilla, ½ tsp cinnamon, ¼ tsp ginger, ¼ tsp nutmeg, zest of ½ orange and ½ tsp Morton kosher salt until completely smooth.
Begin baking. Reduce the oven to 350°F. Grease a 9 × 13-inch baking dish with butter, spread in the filling and bake for 25 minutes. For chilled filling, allow extra time until hot through before adding the crunch.
Add the crunch. Brown 4 tbsp salted butter as above. Combine it with 2 cups crushed cornflakes, 1 cup toasted chopped pecans, ¼ cup dark brown sugar, ¼ tsp cinnamon and ¼ tsp Morton kosher salt. Spread over the entire casserole and bake 10–12 minutes, until crisp and fragrant.
Toast the marshmallows. Rest the casserole out of the oven for 10 minutes. Cover the entire surface with 3 cups mini marshmallows. Bake at 350°F for 8–10 minutes, watching closely, until golden and the filling reaches 165°F. Finish with a pinch of flaky sea salt.