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.
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.