Enforce variant type.