1Preheat oven to 450 degrees F. Lightly coat a 9 inch pie plate with cooking spray.
2Mash the beans; stir in jalapeno peppers, if desired. In a skillet, cook and stir the beans over medium heat for 2 minutes. Set aside.
3Spoon 1/4 cup salsa into bottom of pie plate. Layer in order, 1 tortilla, half the beans, another tortilla, the corn, half of the cheese, 1/4 cup more of the salsa, the third tortilla, remaining beans, remaining tortilla, and salsa.
4Cover with foil. Bake 12 minutes. Sprinkle with remaining cheese. Bake uncovered 3 minutes more. Sprinkle with avocado and cilantro.