Cook Sweet Potatoes. Place sweet potato cubes in a large pot and cover by at least 2-3 inches of water. Bring to a boil over medium-high heat. Boil until fork tender (potatoes will pierce easily with a fork). Drain sweet potatoes in a colander and add them to a large bowl.
Combine. Add sugar, milk, melted butter, eggs, vanilla, and salt.
Mash with a potato masher or hand mixer until no lumps remain. If needed, add 1-2 Tbsp additional milk if your mixture seems too thick. (For perfectly smooth mash, you can work in batches and puree in a food processor or blender. This is my preference!)
Transfer. Pour the mashed sweet potato mixture into a glass or ceramic 9x13 baking dish and smooth the surface. (You can make the sweet potato casserole up to this point the day before Thanksgiving, if desired. Simply cover the baking dish and refrigerate)
Preheat. When ready to bake the sweet potato casserole, preheat the oven temperature to 350 degrees F.
Make The Pecan Topping. In a medium bowl, combine brown sugar, chopped pecans, gluten-free flour and softened butter. Use a hand mixer, pastry blender, or fork to mix the butter into the dry ingredients, until the flour and sugar is moist enough that clusters start to form.
Sprinkle pecan crumble mixture on top of the sweet potato filling.
Cover the dish with aluminum foil and bake 25 minutes at 350 degrees.
Remove foil and bake another 15-20 minutes. If pecans begin to brown too quickly, simply cover with foil again.
Serve & Store. Enjoy warm from the oven. Store leftovers covered with plastic wrap or foil in the fridge 2-3 days. (You *can* transfer it to an airtight container, but I find the layers preserve better in the casserole dish.)