Gets the associated type ID of the variable. Unlike type, this does not work with no value - an argument must be provided.