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

This reverts commit 77daf256f5ec581cd706419d5b3e39cdf25fe99e.