Cast numRows() to int before comparing identity

For some configurations (e.g. Mysql 5.5.31, PHP 5.4.4) , numRows() returns a string instead of an int.
Casting it to int before comparing using === or !== removes this issue.

See commit 952414dba7bc8ca and issue #11.