Combine the pecans, brown sugar, all-purpose flour, and butter in a small bowl. Work the butter into the dry ingredients until crumbly. Set aside.
Preheat the oven to 350°F. Butter or spray a 3-quart baking dish. (A 13 x 9-inch baking dish also works.) Set aside.
Place the sweet potatoes in a large pot and cover with salted water. Bring to a boil and cook for 20–25 minutes or until fork-tender.
Meanwhile, melt the butter in a large mixing bowl. (I place the bowl over the pot of boiling sweet potatoes and remove it as soon as the butter melts to prevent the pot from boiling over.)
Drain the sweet potatoes thoroughly, then pass them through a food mill or potato ricer directly into the melted butter. Stir until combined.
In a separate bowl, whisk together the beaten eggs, sugar, milk, self-rising flour, vanilla extract, almond extract, coconut extract, and 1/4 teaspoon salt until well combined.
Add the egg mixture to the sweet potatoes and stir until smooth and thoroughly combined.
Transfer the mixture to the prepared baking dish and smooth the top.
Sprinkle the topping evenly over the sweet potato mixture.
Bake for 1 hour or until fluffy and heated through to 165 degrees. Place a loose piece of aluminum foil over the top if the pecans start to get too brown. Serve immediately.