Fixes gcc warnings on cast...