Pinto bean and cheese casserole