Sun exposure can lead to cataracts. A cataract happens when the lens in your eye becomes cloudy. This changes your ability to see. Cataracts develop slowly. They usually affect older people. Surgery to replace the lens may be needed. Sunglasses and hats can help prevent or slow the development of cataracts.