Place the granulated sugar and cornstarch (if using) into a blender or food processor. Blend on high speed until the sugar reaches a fine, powdery consistency, about 2-3 minutes. Sift the powdered sugar through a fine mesh sieve to remove any larger particles or clumps. Allow to cool before storing in an airtight container.