fixed type error in toBoolean (#22)