sys_typeid returns the typeid of the most specific type of
the operand. This value is used primarily to identify the
type-discriminant column underlying a substitutable column. For example,
you can use the value returned by sys_typeid to build an index on
the type-discriminant column.