Cast numRows() to int before comparing identity

For some configurations, 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.
Merge pull request #12 from owncloud/numrows_cast_int

Cast numRows() to int before comparing identity