Heat the oil and fry the garlic on it, add green beans, stir.
In another bowl, beat up the eggs with the cream cheese.
Leave some cheddar for a crust. Grate the rest of cheddar and add it to the egg & cheese mixture.
Put the green beans in a casserole dish and coat it with the egg & cheese mixture.
Broil in the oven for 20 min at 180С. A few minutes before it is ready, put the rest of the cheese on the top and bake until it is nice and brown. Divide into 4 pieces and serve.