public final <P> List<P> convertIterable(Iterable<P> as) {
        List<P> objects = new ArrayList<>();
        for(P mp : as) {
            objects.add(mp);
        }
        return objects;
    }
public final < P > List < P > convertIterable ( Iterable < P > as ) { List < P > objects = new ArrayList < > ( ) ; for ( P mp : as ) { objects . add ( mp ) ; } return objects ; }
converts the given {@link Iterable} to a {@link List}

@param <P> the element type
@param as  the {@link Iterable}
@return the converted {@link List}