Beefed up the boolean conversion to address #193