Shadows are the dark patches formed when the light from a source is obstructed by an object.
All types of objects will not cast shadows. Something blocking the light source casts shadows. Opaque objects can produce shadows because they do not allow the light to pass through them. Hence, they form a dark patch on the other side of the object.