Cook the sweet potatoes. Peel the sweet potatoes and cut them into 2-inch chunks, about 20 minutes of work. Put them in a large pot, cover with cold water, bring to a boil, and cook for 20 minutes, until a chunk mashes easily against the side of the pot. Drain well and let the steam escape for 1 minute.
Heat the oven and prepare the dish. Heat the oven to 350°F. Grease a 9x9-inch or 2-quart baking dish with butter or cooking spray.
Mash and mix the filling. Mash the sweet potatoes until smooth. Stir in the melted butter, brown sugar, milk, eggs, vanilla, cinnamon, and salt until fully combined and creamy. Spread the filling evenly in the prepared dish.
Make the pecan topping. In a medium bowl, stir together the chopped pecans, brown sugar, and flour. Pour in the melted butter and mix until the topping looks like wet, coarse crumbs.
Assemble. Scatter the topping evenly over the filling, edge to edge, without pressing it down.
Bake. Bake at 350°F for 30 minutes, until the topping is deep golden and the filling is set at the edges with the center just firm. Let the casserole stand for a few minutes before serving warm.