Place the corn kernels, 1 cup of cheese, diced onions, crushed garlic, corn meal, cream, eggs, and salt in the food processor, mix until the corn is pureed.
Pour half of the corn mix into a pre-greased rectangular oven mold.
Add a layer of cheese using the 2 cups of grated cheese. Add another layer with the rest of the corn mix.
Cover with foil and bake in a pre-heated oven for about 45 – 50 minutes. It can served directly as is. If you want the extra cheesy version, then add some more grated cheese on top and turn on the broiler until the cheese is melted and golden, about 5 minutes/
Serve warm with tomato and onion curtido, tree tomato hot sauce, and aji criollo.