Fix Seq.cast