I have eight corners, yet my shadow often takes the shape of a hexagon. What am I?

Image of Riddle Question

Can you solve this riddle without clicking that tempting answer button?