Is cast used to mean the same thing in the next two sentences?

Cast a warm light.

Cast a vote.
different meanings