Getting msExchRecipientDisplayType values via $dirObj, returns a System.__ComObject reference, not the integer.

I am writing a powershell policy script to detect remote mailbox types (EXO), ARS is not connected to Azure.
$DirObj.GetInfoEx(@("msExchRemoteRecipientType","msExchRecipientTypeDetails","mail"),0)
$msExchRecipientTypeDetails = $dirobj.get("msExchRecipientTypeDetails")
$msExchRemoteRecipientType = $dirObj.get("msExchRemoteRecipientType")
however the values of type System.__ComObject, how do i get the integer values.

Eric