Cast iterators instead of every element