soapy: utility calls to deal with types