There are small amounts of X-rays in the air. Like other energy in the air, X-rays can change living cells. Exposing the human body to high doses of X-rays for a long time is dangerous. It can cause cancer. However, cancer cells are hurt more easily, so X-rays are sometimes used to kill them.