Mix rice, beans, garlic, onion and chilies. In casserole dish spread alternating layers of rice-bean mixture, ricotta cheese and Monterey Jack cheese starting and ending with layer of rice-bean mixture. Bake 30 minutes at 350 degrees. Sprinkle cheddar cheese over top during last 5 minutes.