Converts an input to output.
@override int convert(V input) { assert(values.contains(input)); return values.indexOf(input); }