1. Prepare the Sweet Potatoes: Peel and finely grate the sweet potatoes. Place them in a large mixing bowl and set aside.
2. Mix the Wet Ingredients: In another bowl, combine the coconut milk, evaporated milk, melted butter, and vanilla extract. Stir until evenly blended.
3. Combine the Ingredients: Add the brown sugar, flour, cinnamon, nutmeg, ginger, and salt to the grated sweet potatoes. Pour in the milk mixture and stir thoroughly. Fold in the grated coconut and raisins, if using.
4. Prepare for Baking: Preheat the oven to 180°C (350°F). Grease a baking dish with butter and pour the sweet potato mixture into it. Spread evenly and sprinkle the remaining brown sugar over the top.
5. Bake the Pudding: Bake for approximately 60–75 minutes, or until the pudding is set and a knife inserted into the centre comes out without wet batter. If the top browns too quickly, cover loosely with foil.
6. Cool and Serve: Remove from the oven and allow the pudding to cool for at least 15–20 minutes before slicing. Serve warm or refrigerate for a chilled dessert.