In a pot off the heat, whisk together the sugar and cornstarch. Add the eggs and vanilla and whisk until smooth. Whisk in the milk and cream. Bring to a boil over medium heat, whisking constantly, being careful to scrape the bottom and sides of the pot. Pass the mixture through a sieve and into a bowl. Cover with plastic wrap directly on the surface of the cream and let cool.