Start by bringing a large saucepan to a medium heat. Add olive oil, garlic and thyme. Sauté until the garlic start to turn golden in colour. Add the onion and continue sauteing until golden in colour, about 5 minutes.
Add the canned chopped tomatoes, chicken stock, white wine vinegar, sugar, paprika, mild curry powder, fresh chili, salt and pepper. Allow to simmer, on a medium-low heat, uncovered, for 30 minutes or until the sauce has reduced by half, stirring occasionally.
Meanwhile, preheat the oven to 180℃/356℉.
To an ovenproof baking dish, add the ground corn, cream, tomato and onion mixture, half of the grated cheese and mix well.
Evenly top with the remaining cheese and bake, uncovered, for 1 hour 10 minutes. Then allow to rest for another 10 minutes to allow it set. After that, you can get serving!