Beat butter and sugar on medium speed for two minutes.
Add vanilla and eggs one at a time. Beat for 1 minute.
Fluff flour with a fork. Spoon flour into the measuring cup and level off with a butter knife. Combine flour, salt, and cornstarch. Whisk to blend. Place in a fine mesh sieve held over a bowl. Sift the contents into the bowl.
Gradually add the flour mixture to the sugar-egg-butter mixture on low, then gradually increase to medium-low. Beat until the flour mixture is just combined.
Fill a pastry bag equipped with a large star-shaped tip. Pipe 2 to 2 ½-inch wide rosettes onto a bare, non-stick, or parchment paper-lined (recommended) baking sheet. Space rosettes 2 inches apart. Add a sprinkling of sanding sugar, optional. Refrigerate for at least 1 hour, 2 is better.
Preheat oven to 350° F. Position the rack just above the middle of the oven. Bake for 10 to 13 minutes or until the bottom turns a light golden brown.
Cool on the baking sheet for 5 minutes before transferring to a cooling rack to cool completely.
