valueToId

abstract fun valueToId(value: T): Int

Converts the given value to its corresponding id or throws an IllegalArgumentException if value is not valid for this property.