Preheat the oven to 350°F (175°C).
Wash and peel the sweet potatoes, then cut them into chunks.
Boil the sweet potatoes in a pot of salted water until tender, about 15–20 minutes.
Drain and mash the sweet potatoes until smooth.
In a large mixing bowl, combine the mashed sweet potatoes with coconut milk, brown sugar, vanilla extract, cinnamon, nutmeg, and salt.
Fold in the raisins and lime juice gently.
Pour the mixture into a greased baking dish.
Bake in the preheated oven for about 1 hour, or until set.
Remove from the oven and let cool slightly before serving.
Serve warm or chilled, as desired.