Heat the oven to 180 C and grease a 2-litre baking dish.
Boil the sweet potatoes for 15 minutes, then drain and mash.
Whisk in melted butter, milk, eggs, sugar, cinnamon and salt.
Spread the mixture in the dish.
Rub pecans, flour, sugar and softened butter together for the topping.
Scatter over the potatoes and bake for 30 minutes.