We study the effect of the presence of hyperons in dense matter on the
neutron star cooling. For several neutron star masses, we consider di
fferent scenarios for the stellar interior (with and without nucleon s
uperfluidity), and for the outer layers of the star (with and without
strong magnetic field). In the presence of nucleon superfluidity, cool
ing of a massive neutron star is dominated by the neutrino losses from
the direct URCA processes involving hyperons only. Strong surface mag
netic field can have a significant effect on the cooling curve. Compar
ison with recent determination of the effective surface temperature of
PSR 0656+14 seems to indicate, that either it does not contain hypero
ns, or hyperons are superfluid.