Constructing a string from a string array fails:
$array := "1,3"
$values = split $array ","
$str := delimit (last 1 $values)
$int := int $str
It however can be done using printf which indicates that the above may be a bug:
$array := "1,3"
$values = split $array ","
$str := delimit (last 1 $values)
$int := int (sprintf "%s" $str)