combine the sugar, cornstarch, salt, and cocoa powder, if using, in a heavy-bottomed saucepan. whisk to combine. add a splash of the milk mixture to the saucepan and whisk to form a smooth paste. then stir in the rest of the mixture.