Preheat the oven to 425°F. Scrub and dry the sweet potatoes and poke holes in the skins with a fork. Place on a rimmed baking sheet lined with foil or oven safe parchment. Bake for about 45 minutes, adding time as needed until a fork slides easily into the thickest part. Let cool enough to handle, then peel. Allow the flesh to cool until warm rather than steaming hot before adding eggs.
Prepare the filling
Reduce the oven temperature to 350°F. Lightly grease a baking dish large enough to hold the filling and topping with room below the rim. In a large bowl, combine the sweet potatoes, melted butter, milk, vanilla, and sugar. Mix with a hand mixer or whisk for about 2–3 minutes until smooth. Add the beaten eggs and mix for another 1–2 minutes, until evenly incorporated. Spread in the prepared dish.
Make the topping
Combine the flour, brown sugar, melted butter, and chopped pecans in a medium bowl. Stir until fully incorporated and no dry flour remains. Distribute evenly over the filling.
Bake
Bake at 350°F for about 30–35 minutes, until the topping is golden and the filling is set, with the center reaching at least 160°F. If the top browns before the center is ready, loosely cover with foil and continue baking. Allow additional time for a deeper dish or cold filling. Let rest briefly before serving warm.