allow determining boolean value from integer

when generating a schema diff I encountered a java.lang.Integer cannot be cast to java.lang.Boolean error. Some of the fields in my schema were TINYINTs. After applying this patch, it worked, so I decided to contribute it back to see if it helps.

Please let me know if I misunderstood something.