Preheat your oven to 400°F (200°C).
Scrub the sweet potatoes and pierce each several times with a fork. Place on a baking sheet lined with parchment or foil and bake for 45–55 minutes, or until tender when pierced with a knife.
Once baked, let cool slightly and peel off the skins .
Reduce oven temperature to 350°F (175°C).
Place the soft flesh in a large mixing bowl or stand mixer and. Add sugar, salt, cinnamon, nutmeg, vanilla extract, beaten eggs, and melted butter.
whisk to blend until creamy and well combined.
Spread the mixture evenly into a greased 9x13-inch baking dish or cast iron
In another bowl, combine brown sugar, flour, chopped pecans, and melted butter. Mix until crumbly and evenly coated.
Sprinkle the pecan topping evenly over the sweet potato mixture.Bake uncovered for 40–45 minutes, or until the topping is golden brown and crisp around the edges.
Let the sweet potato casserole cool for about 10 minutes before serving. The filling will firm up slightly as it rests, giving you that perfect creamy-yet-structured texture.