code: private Boolean[] convert(final List source) {
  
  		final ArrayList<Boolean> result = new ArrayList<>();
  
  		for (final Object o : source) {
  
  			if (o instanceof Boolean) {
  
  				result.add((Boolean)o);
  
  			} else if (o != null) {
  
  				result.add(Boolean.valueOf(o.toString()));
  
  			} else {
  
  				// dont know
  				throw new IllegalStateException("Conversion of array type failed.");
  			}
  		}
  
  		return (Boolean[])result.toArray(new Boolean[0]);
  	}
docs: ----- private methods -----