Cast any value

types.castAny(format, value)

Arguments

format

any format is accepted

value

any value to cast

Details

Any type or format is accepted.

See also

Examples

types.castAny(format = "default", value = 1)
#> [1] 1
types.castAny(format = "default", value = "1")
#> [1] "1"
types.castAny(format = "default", value = "")
#> [1] ""
types.castAny(format = "default", value = TRUE)
#> [1] TRUE