@Override
    public byte getPrimitiveValue() {
        return (byte) typeId;
    }
Same as {@link FieldType#getTypeId()} except cast to a byte.
stroom-query/stroom-query-api/src/main/java/stroom/query/api/datasource/FieldType.java