That’s where thickening agents come in. Both the egg yolks and the cornstarch in a typical coconut cream pie recipe serve to thicken the custard. Some chefs also swear by the use of cream cheese, which they say enhances the creaminess and flavor as well as guards against runniness.