Cast any value
types.castAny(format, value)
format | any format is accepted |
---|---|
value | any value to cast |
Any type or format is accepted.
types.castAny(format = "default", value = 1)#> [1] 1types.castAny(format = "default", value = "1")#> [1] "1"types.castAny(format = "default", value = "")#> [1] ""types.castAny(format = "default", value = TRUE)#> [1] TRUE