You can only use the data types defined by BP, and these types are deliberately simplified (eg number instead of int, float etc). So in your code you'll need to cast from one of these into something more specific, or use structured text such as JSON for anything more complex.
------------------------------
John Carter
Professional Services
Blue Prism
------------------------------