code: public boolean asBoolean(Object value) {
  
          if (value == null) {
              return false;
          }
  
          if (value instanceof Boolean) {
              return (Boolean) value;
          }
  
          return true;
      }
docs: Convert `value` to a boolean. Note that only `nil` and `false`
  are `false`, all other values are `true`.
  
  @param value
  the value to convert.
  
  @return `value` as a boolean.