The Mass of Galaxies at Low and High Redshift