code: static boolean asBoolean(Object value) throws ProvidenceConfigException {
          if (value instanceof Boolean) {
              return (Boolean) value;
          } else if (value instanceof Double || value instanceof Float) {
              throw new ProvidenceConfigException("Unable to convert real value to boolean");
          } else if (value instanceof Number) {
              long l = ((Number) value).longValue();
              if (l == 0L) return false;
              if (l == 1L) return true;
              throw new ProvidenceConfigException("Unable to convert number " + l + " to boolean");
          }
          throw new ProvidenceConfigException("Unable to convert " + value.getClass().getSimpleName() + " to a boolean");
      }
docs: Convert the value to a boolean.
  
  @param value The value instance.
  @return The boolean value.
  @throws ProvidenceConfigException When unable to convert value.