Scoop out the insides of the tomatoes. Cook the mushrooms with the onion, red pepper and corn until tender. The mushrooms will release their own juice, so cook until the required consistency is obtained. Mix in the toasted garlic and stuff the tomatoes. Spread the cheese on top and bake for half hour in a preheated oven, until the tomatoes are tender. Take care not to overcook.