First of all, make shure you have a ground plane for the shadow to cast onto, then.... Create a light. Turn shadows on. Aim it at your object. Adjust light position to your liking. Render and see the results.