People who work all night may have an increased risk of prostate or breast cancer, and those who alternate between day and night shifts may be at even greater risk.