Preheat oven to 375°F
Grease a medium baking dish (2-quart or 8×8 baking dish) with coconut oil.
Place cubed sweet potatoes in a large pot of water over high heat. Once the water begins to boil, reduce the heat to medium.
Cook the potatoes for 12-15 minutes, or until fork tender.
While the potatoes are cooking, make the pecan topping.
In a medium bowl, whisk together almond flour, arrowroot flour, coconut sugar, chopped pecans, cinnamon, nutmeg, and salt.
Add the coconut oil and maple syrup. Mix with a fork until it forms a crumble. Set aside.
Once cooked, drain the potatoes.
Add potatoes to a mixing bowl and add coconut milk, coconut oil, maple syrup, vanilla, and sea salt. Mix ingredients together until smooth, then add in the eggs.
Pour the sweet potato filling into the prepared baking dish and spread it so it sits evenly in the pan. Crumble the pecan topping evenly on top of the sweet potato mixture.
Cover the dish with aluminum foil and bake for 20 minutes. Uncover the dish, and bake for an additional 15-20 minutes, or until the topping is golden brown and crisp. Let the casserole sit for 5 minutes prior to serving. Serve warm.