fixup! added toBoolean cast function