cast bool logic to bool type
Merge pull request #6 from fantasticfears/master

cast bool logic to bool type