Extract type variables.