Place shredded coconut into a dry pan. Toast over medium-high heat for 5-7 minutes until it starts to toast. Do not burn. Remove from heat and set aside 1/2 cup of the toasted coconut for sprinkling over the top of the ice cream later.
1½ cups shredded sweetened coconut
Add milk, heavy cream or coconut cream, coconut milk, and salt to the remaining 1 cup of toasted coconut in the pan. Heat over medium-high heat until steaming slightly and there are small bubbles around the edges of the pan. Do not bring to a simmer.
1 cup whole milk, 1 cup heavy cream, 1 cup full-fat coconut milk, 1 pinch of salt
Meanwhile, whisk egg yolks and white sugar in a medium bowl until lightened in color and slightly thickened.
4 egg yolks, ⅔ cup granulated sugar
When the cream mixture is hot, temper the eggs by whisking 1 cup of the hot liquid into the egg and sugar mixture.
Add the tempered egg mixture to the cream mixture in the pan and continue to cook, stirring almost constantly, until it reaches 170°F on a digital thermometer or is thickened enough to coat the back of a spoon. Remove from heat and stir in vanilla. Allow the ice cream mixture to cool to room temperature before chilling it in the fridge for at least 3 hours or overnight.
2 teaspoons vanilla bean extract
Pour the chilled ice cream base into the ice cream maker and churn until it is the consistency of soft-serve ice cream, about 20-30 minutes. It can be served at this consistency if desired, but for a firmer scoop, it will need to be transferred to a container like a bread pan and frozen for 4-6 hours until hard. When ready to serve, remove the ice cream from the freezer and let it sit out for 15 minutes to soften slightly so it is easy to scoop.