docs: private static Number asNumber(Object value) {
      Number num = null;
      if (value == null) {
        num = null;
      } else if (value instanceof Number) {
        num = (Number) value;
      } else if (value instanceof Boolean) {
        num = ((Boolean) value) ? 1 : 0;
      }
      return num;
    }