All those variable can be made into something like:
%cast_poll %cast_vote %cast_option %cast_pmaker %cast_polltime %cast_ptopic %cast_num %cast_wrote
Then at the end of their routines, get them all unset with: unset %cast*