In a large bowl, mash the drained sweet potatoes until mostly smooth.
737 grams sweet potatoes, drained
Add the melted butter, milk, granulated sugar, vanilla extract, beaten eggs, and salt to the mashed sweet potatoes. Stir until everything is well combined.
737 grams sweet potatoes, drained
Pour the sweet potato mixture into a shallow baking dish or a cast-iron skillet.
In a separate small bowl, combine the melted butter for the topping, brown sugar, and flour. Use your fingers to mix until crumbly.
737 grams sweet potatoes, drained
Stir in the pecan pieces into the crumb mixture.
737 grams sweet potatoes, drained
Sprinkle the topping mixture evenly over the sweet potato casserole.
Bake for 25-35 minutes, or until the edges are bubbling and the topping is golden brown.
Let the casserole stand for a few minutes before serving to allow it to set slightly.
Notes
This sweet potato casserole is a crowd-pleaser and can be made ahead of time and reheated before serving. For best results, reheat in the oven.