In a medium saucepan, mix together sugar and cornstarch until completely combined. Slowly add water, mixing constantly to insure there are no lumps. Cook over medium-low heat, stirring constantly, until mixture comes to a boil. Remove from heat and slowly add 2 cups of the hot mixture to the beaten egg yolks, whisking constantly; you want to add this slowly, so as not to make scrambled eggs!