Iterable? castIterableNullable(Iterable itr, Type type) { if (type == this.type) { return itr.cast<O?>(); } return null; }