Preheat the oven to 375°F and lightly grease a 9x13-inch baking dish with cooking spray or butter.
Heat olive oil in a large skillet over medium heat. Add the ground beef and diced onion and cook until the beef is browned and the onion is soft, breaking the meat apart as it cooks. Drain any extra fat.
Stir in the taco seasoning, minced garlic, and drained diced tomatoes with green chilies. Cook for 1-2 minutes so the flavors blend.
In a large bowl, combine the thawed and drained hash browns, cream of chicken soup, sour cream, and milk. Stir until smooth and creamy.
Fold in the cooked taco meat, black beans, corn, and 1 cup of shredded cheddar cheese. Season with salt and pepper to taste.
Transfer the mixture to the prepared baking dish and spread it into an even layer. Sprinkle the remaining 1 cup of cheddar cheese over the top.
Cover with foil and bake for 25 minutes. Remove the foil and continue baking for 15-20 minutes more, until the casserole is hot and bubbly and the cheese is golden.
Let the casserole rest for 5-10 minutes so it sets and slices cleanly. Add your favorite toppings and serve warm.