Today I will demonstrate you that how to use type conversion methods in AX 2012. Enum2int() Method static void Datatypes_enum2int(Args _args) { SalesType salesType; salesType = SalesType::Sales; info(strfmt("The value of the current sales-type element is %1",enum2int(salesType))); } Enum2Str() Method static void Datatypes_enum2str(Args _args) { SalesType salesType; salesType = SalesType::Sales; info(strfmt("The name of the current sales-type is '%1'", enum2str(salesType))); } Num2Str() Method static void Datatypes_Num2str(Args _args) { str mileage; real mileageNum; mileageNum = 388272.23; /* num2str(number to be converted, minimum characters required, required number of decimals, decimal separator <1=point, 2=comma>, thousand separator <0=none, 1=point, 2=comma, 3=space>) */ mileage = num2str(mileageNum,0,2,2,0); print strfmt("The car has run %1 miles", mileage); pause; } Str2Num() Method static v...