Add the .toBoolean() conversion and tests