Cornstarch is a thickening agent and once cooked it turns into a paste. The cornstarch will soak up any juices of the apples along with the lemon juice and vanilla.