code: public static VectorTile.Tile.Value toValue(Object value) {
          final VectorTile.Tile.Value.Builder tileValue = VectorTile.Tile.Value.newBuilder();
  
          if(value instanceof Boolean) {
              tileValue.setBoolValue((Boolean) value);
  
          } else if(value instanceof Integer) {
              tileValue.setSintValue((Integer) value);
  
          } else if(value instanceof Long) {
              tileValue.setSintValue((Long) value);
  
          } else if(value instanceof Float) {
              tileValue.setFloatValue((Float) value);
  
          } else if(value instanceof Double) {
              tileValue.setDoubleValue((Double) value);
  
          } else if(value instanceof String) {
              tileValue.setStringValue((String) value);
          }
  
          return tileValue.build();
      }
docs: Covert an {@link Object} to a new {@link VectorTile.Tile.Value} instance.
  
  @param value target for conversion
  @return new instance with String or primitive value set