In a small pot off the heat, whisk together the sugar and cornstarch. Add the egg yolks and mix well. Add the milk, cream and vanilla. Bring to a boil over medium heat, stirring constantly and scraping the bottom and sides of the pot, until the mixture has thickened. Remove from the heat. Add the butter. In a sieve set over a bowl, strain the pastry cream to remove any lumps.