Savory Mashed Potato Pancakes

2 cups mashed potatoes
1 large egg, beaten lightly
6 tablespoons all-purpose flour
1 1/2 tablespoons grated onion
2 cloves garlic diced
1/4 cup grated cheddar cheese (optional) Salt and pepper Vegetable oil, for frying

In a bowl combine well the potatoes and the egg, stir in the flour thoroughly, and stir in the onion, garlic, (cheese if used), and salt and pepper, to taste. Heat a cast iron skillet over medium high heat with a little bit of oil. Pan should be hot, but not smoking. Fry heaping tablespoons of the potato mixture, flattening them slightly with the back of the spoon, for 1 minute on each side, or until they are golden brown.