BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
1 / 18 · Module 3 — DataWeave 2.0 Crash Course · filtered: cheatsheet⊞ allnext →

3.17Type conversion with `as`

Incoming:

{
  "customerCount": "42"
}

It's a string.

Need number:

payload.customerCount as Number

Likewise:

payload.active as Boolean

or:

payload.createdDate as Date

You will see as constantly.