In a saucepan, whisk together the sugar, cornstarch, and salt.
Gradually add the coconut milk and heavy cream, stirring continuously.
Cook over medium heat until the mixture thickens and bubbles.
In a separate bowl, whisk the egg yolks.
Slowly add a cup of the hot mixture to the egg yolks, whisking constantly.
Pour the egg mixture back into the saucepan.
Cook for an additional 2 minutes, stirring constantly.
Remove from heat and stir in the vanilla extract and shredded coconut.
Pour the filling into the pre-baked pie crust.
Chill in the refrigerator for at least 4 hours until set.
Top with whipped cream and toasted coconut before serving.