Look for tart apples that have a firm flesh. These will hold their shape and won't break down as much during the baking process.