Place the peeled sweet potato chunks in a large pot and cover them with water. Bring to a boil, then reduce the heat and simmer for 15–20 minutes, or until the potatoes are fork-tender. Drain thoroughly.
Transfer the cooked sweet potatoes to a large mixing bowl. Mash with a potato masher or hand mixer until mostly smooth. A few small pieces are fine if you prefer a slightly textured filling.
Add the melted butter, brown sugar, milk, eggs, vanilla extract, cinnamon, nutmeg, and salt. Mix until everything is evenly combined and the filling is creamy.
Preheat the oven to 350°F (175°C). Lightly grease a 9 x 13-inch baking dish and spread the sweet potato mixture evenly across the bottom.
In a separate bowl, combine the chopped pecans, flour, brown sugar, and cinnamon. Pour in the melted butter and stir until the mixture forms moist, crumbly clusters.
Sprinkle the pecan mixture evenly over the sweet potato filling. Gently spread it into an even layer without pressing it too firmly into the potatoes.
Bake uncovered for 30–35 minutes, until the filling is heated through and the pecan topping is lightly golden. If the nuts begin browning too quickly, loosely cover the dish with foil.
Remove the casserole from the oven and let it rest for about 5–10 minutes. This allows the filling to settle slightly and makes serving easier.