Heat the oil in a large skillet over medium heat. Add the onion, minced garlic, cumin and chili powder and cook until you can smell the spices and the onion is softened, about 3 minutes.
Stir in the tomatoes with the 1/3 cup of water and the tomato paste.
Add the corn, beans and cook about 8 to 10 minutes. Season with salt and pepper.
Place tortilla or lasagna sheet in a pan. Spread one fourth of the bean mixture evenly over the tortilla, then sprinkle 1/2 cup of the shredded cheese evenly over the top.
Repeat with 3 more layers, ending with the last quarter of the bean mixture and then the last 1/2 cup of shredded cheese.
Bake the tortilla or lasagna sheet at 180 degree C until it is hot throughout and the top is lightly browned, about 20 minutes. Serve warm.