changed casting behavior in sequencer to fix class cast error