Over medium heat, whisk together the sugar, cornstarch, salt, and yolks in a 3-quart heavy saucepan until well combined. Then slowly add in the milk, whisking. Bring to a boil over moderate heat, still whisking, then reduce heat and simmer, whisking some more for about 1 minute (filling will be thick).