Ah, yep. So the check isn't needed - you can just call `ArrayUtils::iteratorToArray()` directly - that one triggers an exception in case of type mismatch