Cook the rice with 4 cups of water and ¼ cup of butter.
Preheat oven to 350 F degrees.
Mix the 2 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.