Prepare and bake the pie crust until golden, then allow it to cool.
Heat milk, coconut, sugar, and butter in a saucepan.
Mix eggs and flour/cornstarch separately, then slowly add to the warm mixture.
Cook until the filling becomes thick and creamy.
Pour coconut filling into the pie crust and chill until set.
Top with whipped cream and toasted coconut before serving.