Cooling rates of neutron stars and the young neutron star in the Cassiopeia A supernova remnant