@Override public Integer cast(Object value) {
      if (value instanceof Number) {
        return ((Number) value).intValue();
      }
      if (value == null) {
        return null;
      }
      return parse(value.toString());
    }
Reads a value according to this type.
@param in a data input
@return an instance of a value for the type or null
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/properties/PropertyType.java