Generalize type-based converter to Iterable.