When a radioactive nucleus emits an electron ( beta decay ), it is in fact a neutron within the nucleus that transforms into a proton by emitting a W- which, soon after, decays into an electron anti-neutrino pair.