Preheat oven to 400°F. Pierce sweet potatoes with a fork and place on a parchment-lined baking sheet. Roast for 45-60 minutes until tender. Cool slightly and scoop flesh into a large bowl.
Reduce oven temperature to 350°F. Add 4 tablespoons melted butter, 1/3 cup brown sugar, eggs, milk, vanilla, cinnamon, nutmeg, and salt to sweet potatoes. Mix until smooth and creamy.
In a separate bowl, combine chopped pecans, 1/2 cup brown sugar, flour, and 3 tablespoons melted butter. Mix with a fork until crumbly.
Butter a 9x13-inch baking dish. Spread sweet potato mixture evenly in the dish and smooth the top.
Sprinkle pecan streusel topping evenly over the sweet potato layer, covering all edges.
Bake for 25-30 minutes until topping is golden brown and casserole is heated through with bubbling edges.
Remove from oven and let rest for 10 minutes before serving.