Boil the cubed sweet potatoes for 15 to 20 minutes, until fork-tender. Drain well.
Preheat the oven to 425°F and grease a baking dish with coconut oil.
Put the cooked sweet potatoes and ghee in a mixing bowl. Add the vanilla, cinnamon, nutmeg, coconut sugar and coconut milk, and beat with a mixer until creamy.
Spread the sweet potatoes into the prepared baking dish.
In a separate bowl, mix the pecans, walnuts, grain-free flour, ghee and coconut sugar with a fork until well blended and all the nuts are coated.
Spread the topping evenly over the sweet potatoes and bake uncovered for 25 minutes, until the topping is golden and the sweet potatoes are bubbling a bit.
Notes
• Make ahead: Make the filling and topping the day before and refrigerate them separately. Add the topping right before baking.• Leftovers: Keep covered in the fridge for 3 to 4 days. Reheat in the oven.• Dairy-free: Use vegan butter instead of ghee (it won't be paleo).• Not paleo? Use brown sugar instead of coconut sugar, and rice flour or a gluten-free all-purpose blend instead of the grain-free blend.