Notes
Make it dairy free/vegan: Use dairy-free milk, such as almond. Replace the butter with coconut oil.
Make it nut free: While I haven’t tried, I think that pepitas (green pumpkin seeds) would be nice in place of the pecans. Blitz them in a food processor until they’re finely chopped and proceed as directed. Be sure to use a nut-free milk, and let me know how this turns out in the comments if you give it a try!
Prepare in advance: You can roast the sweet potatoes in advance and chill them for later. Or, prepare the whole dish up to 3 days in advance and refrigerate until you’re ready to bake. Your dish will likely need an additional 5 minutes or so in the oven since it’s starting off cold.
Freeze it: Prepare the dish as directed through the assembly in step 5. To minimize freezer burn, refrigerate the dish until fully chilled. Then, wrap or cover well and freeze for up to 6 months. Defrost in the fridge overnight then bake as directed, allowing some extra time in the oven since it started off cold.