Peel and cut sweet potatoes into chunks.
Boil them in water for 20 minutes.
They should be soft and tender.
Drain the water completely.
Mash them until smooth with no lumps.
Preheat your oven to 350°F (175°C).
In a large bowl, combine mashed sweet potatoes.
Add sugar, eggs, milk, and melted butter.
Mix everything until well combined.
Add vanilla extract and salt.
Beat with an electric mixer for 2 minutes.
The mixture should be light and fluffy.
In a separate bowl, mix brown sugar.
Add flour and melted butter.
Stir until it becomes crumbly.
Add chopped pecans and mix well.
This creates a crunchy, sweet topping.
Grease your baking dish with butter.
Pour the sweet potato mixture into it.
Spread it evenly with a spatula.
Sprinkle the topping mixture over it.
Cover the entire surface.
Bake for 30-35 minutes.
The top should be golden brown.