Preheat your oven to 350°F (175°C) and grease a baking dish.
In a large bowl, combine the grated sweet potatoes, flour, brown sugar, coconut milk, vanilla extract, cinnamon, nutmeg, allspice, and salt. Mix well until all the ingredients are thoroughly combined.
Add the melted butter to the mixture and stir until incorporated. If desired, fold in the raisins for an extra burst of flavor.
Pour the mixture into the greased baking dish and spread it evenly.
Bake in the preheated oven for approximately 1 hour and 30 minutes, or until the top is golden brown and a toothpick inserted into the center comes out clean.
Once baked, remove the pudding from the oven and let it cool for a few minutes before serving. It can be enjoyed warm or chilled, according to your preference.
Serve the delicious Jamaican Sweet Potato Pudding on its own or with a dollop of whipped cream, a scoop of vanilla ice cream or desired toppings . Enjoy!