core/src/main/java/com/orientechnologies/orient/core/serialization/serializer/record/binary/HelperClasses.java
public static void writeOType(BytesContainer bytes, int pos, OType type) {
    bytes.bytes[pos] = (byte) type.getId();
  }
public static void writeOType(BytesContainer bytes, int pos, OType type) {
    bytes.bytes[pos] = (byte) type.getId();
  }
}