$number = $session->TYPE( $string );
$string = $session->TYPE( $number );

The TYPE() function converts a Domain Manager data type symbolic name to its internal numeric code, or converts an internal numeric code to its symbolic name. So the following prints “13”:

 print $session->TYPE( "STRING" ) . "\n”;

The following code prints “STRING”:

 print $session->TYPE( 13 ) . "\n”;