toPair
Convert a NameIdPair to a Pair with NameIdPair.id as Pair.first and NameIdPair.name as Pair.second.
Convert a NameGuidPair to a Pair with NameGuidPair.id as Pair.first and NameGuidPair.name as Pair.second.
Convert a NameValuePair to a Pair with NameValuePair.name as Pair.first and NameValuePair.value as Pair.second.