Mix sugar and butter in a bowl until smooth. Add eggs in one at a time and beat. Add in your extract.
Mix flour, baking powder, cornstarch, and salt together in a bowl. Add the sugar/butter mixture to this and stir until the batter is smooth. Add the batter to your pan.
Let bake for 30-40 minutes or 20-25 minutes for cupcakes.