Convert strings to logical.
castLogical(x)
x
A string.
A string, converted to logical.
castLogical("1")