partially convert VocabEncoder code types into int64_t