Place the corn kernels, 1 cup of cheese, onions, garlic, corn meal, cream, eggs,sugar, salt and pepper in the food processor, process until everything is pureed.
Pour half of the corn mixture into the prepared baking pan. Add the shredded chicken and the rest of the cheese. Then add another layer with the rest of the corn mixture.
Cover with aluminum foil and bake for about 35 to 40 minutes. Serve warm with a salad on the side.