Implemented int for bool check.
Merge pull request #10 from arxanas/master

Implemented int for bool check.