[eluser]Phil Sturgeon[/eluser]
Good point, they could do with typecasting this with a simple return (int) $x in the funciton.
This is not really a coding fault of the EllisLab team, this is a shortfall of PHP's native MySQL binding functions. To these functions, EVERYTHING is a string, all the time. Useless!