CO-to-H2 Conversion Factor in Galaxies