It is also used for making baked potatoes , baked apples , baked beans , some casserole and pasta dishes such as lasagna , and various other foods , such as the pretzel . It is also used for the preparation of baked potatoes , baked apples , baked beans , some casseroles and pasta dishes such as lasagna , and various other foods , such as the pretzel .