Fixed cast for compilation on madmax