code: private Boolean toBoolean(Object value) {
  		if (value == null) {
  			return null;
  		} else if (value instanceof Boolean) {
  			return (Boolean) value;
  		} else if (value instanceof String) {
  			return Boolean.parseBoolean((String) value);
  		} else if (value instanceof Short) {
  			return (Short) value != 0;
  		} else if (value instanceof Integer) {
  			return (Integer) value != 0;
  		} else if (value instanceof Long) {
  			return (Long) value != 0;
  		} else if (value instanceof Float) {
  			return (Float) value != 0;
  		} else if (value instanceof Double) {
  			return (Double) value != 0;
  		}
  
  		return null;
  	}
docs: -------------------------------------------------------------------------