Step 1Heat the oven to 400 degrees.
Step 2In a large bowl, whisk together the mashed sweet potatoes, granulated sugar, eggs, cinnamon, nutmeg and milk until thoroughly combined. Whisk in half (1/4 cup plus 2 tablespoons) of the melted butter.
Step 3Pour the mixture into a shallow, 2-quart casserole and bake for 20 minutes.
Step 4While the sweet potatoes are baking, assemble the topping. In a medium bowl, combine the corn flakes, pecans, brown sugar and remaining (1/4 cup plus 2 tablespoons) melted butter.
Step 5After 20 minutes, sprinkle the topping over the sweet potatoes. Bake for an additional 10 minutes. Remove and cool slightly before serving.