// the following line makes perfect sense to me, // but it causes a compiler error, I'm supposed to write: // Person p = (Person)it.next();