android/guava/src/com/google/common/collect/Iterators.java
static <T> ListIterator<T> cast(Iterator<T> iterator) {
    return (ListIterator<T>) iterator;
  }
static <T> ListIterator<T> cast(Iterator<T> iterator) {
    return (ListIterator<T>) iterator;
  }
Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557