replace toString() with as boolean to address github issue #33