Preheat oven to 375 degrees.
Brown ground beef in a large pan over medium heat until no longer pink. Transfer to plate lined with paper towels.
Add onions to pan and saute over medium heat until translucent.
Add garlic and cook until lightly browned, about 2 minutes.
Return ground beef to pan. Stir in corn, cream of mushroom, sour cream, milk, ½ of the shredded cheese, salt and pepper.
Pour ground beef and vegetable mixture into a casserole dish.
Place frozen tater tots on top in single layer and cover with remaining cheese.
Bake for 30-35 minutes or until tater tots are fully cooked.