Use explit types in foreach iterators