private static Iterable<?> toIterable( Object value ) {
        if( value instanceof Iterable<?> ) {
            return (Iterable<?>) value;
        }
        if( value.getClass().isArray() ) {
            return arrayToList( value );
        }
        return null;
    }
The default implementation to format a table argument
jgiven-core/src/main/java/com/tngtech/jgiven/format/table/DefaultTableFormatter.java