Cast added due to API changes in PHP 5.3.1