Effect of a Constant Magnetic Field on the Neutron Beta Decay Rate and its Astrophysical Implications