"Cosmic rays" are not the same as "cosmic radiation". Cosmic rays are charged (massive) particles which are moving at relativistic speeds, and are not electromagnetic radiation. In contrast, cosmic radiation consists of photons.
I see the wikipedia article for cosmic rays [0] does state they are radiation, which is misleading and should probably be changed.