Coerce to boolean

Suggested in #48.