Skip to main content


Laurence MorganLess than 1 minute


Alters the data type of the previous function without altering it's output


cast works a little like when you case variables in lower level languages where the value of the variable is unchanged. In Murex the contents in the pipeline are preserved however the reported data type is altered.


<stdin> -> cast data-type -> <stdout>


» out {"Array":[1,2,3],"Map":{"String": "Foobar","Number":123.456}} -> cast json
{"Array":[1,2,3],"Map":{"String": "Foobar","Number":123.456}}


If you want to reformat the STDIN into the new data type then use format instead.

See Also

  • format: Reformat one data-type into another data-type
  • out: Print a string to the STDOUT with a trailing new line character
  • tout: Print a string to the STDOUT and set it's data-type

This document was generated from builtins/core/typemgmt/types_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan,Laurence Morgan,Laurence