Heat the oven to 400°F. Prick the sweet potatoes a few times with a fork, set them on a foil-lined rimmed baking sheet and roast for 50 to 60 minutes, until completely soft and starting to ooze syrup.
Let the sweet potatoes cool for 10 minutes, then halve them and scoop the flesh into a large bowl. Discard the skins. Reduce the oven to 350°F and butter a 9x13-inch baking dish.
Mash the sweet potatoes with the melted butter, brown sugar, milk, eggs, vanilla, cinnamon, nutmeg and salt until smooth. A hand mixer gives the silkiest texture. Spread evenly in the baking dish.
For the streusel, stir the brown sugar, flour and salt in a bowl. Add the melted butter and stir until clumpy, then fold in the pecans.
Scatter the streusel evenly over the sweet potatoes. Bake for 30 to 35 minutes, until the topping is golden and the edges are bubbling.
Let the casserole rest for 10 minutes before serving.