In Cakephp 2.4.0-beta and php 5.4.3  the typecast was throwing an error so i removed it.