Cook the dry rice as directed on package. Preheat oven to 350 F degrees. Mix the two cheeses together. In a large bowl mix the shredded chicken with the enchilada sauce, refried beans and half of the cheese. Add rice, season with salt and pepper if needed, and mix well. Pour rice mixture into a large casserole dish. Top with corn then with remainder of cheese. Bake for about 20 to 30 minutes or until cheese melts and is bubbly. Garnish with fresh, chopped cilantro and sour cream and serve warm.