Retrieving an Integer

int GETVALUE_INT(string Fieldname);

Example:
if (Contact:GETVALUE_INT('Type') == 0) then

Use this function also to retrieve the integer value of a Microsoft Dynamics option field. The first option value has the value 0.