Cast from c_int to bool is forbidden. Replace `as bool` by `!= 0`
Merge pull request #34 from sebcrozet/bool_cast

Cast from c_int to bool is forbidden. Replace `as bool` by `!= 0`