Meanwhile, in a saucepan, combine the sugar and cornstarch. Add the eggs and stir with a whisk until smooth. Stir in the milk and vanilla. Bring to a boil, stirring constantly. Remove the pan from the heat and add the cream cheese. Stir until smooth and creamy.