Use static cast instead of c-style cast
Use static cast instead of c-style cast

The behaviour of this cast is better defined.

Contributes to issue CURA-285.
markwal/CuraEngine,pratikshashroff/pcura,alephobjects/CuraEngine,pratikshashroff/pcura,markwal/CuraEngine,totalretribution/CuraEngine,markwal/CuraEngine,ROBO3D/CuraEngine,alephobjects/CuraEngine,Ultimaker/CuraEngine,alephobjects/CuraEngine,pratikshashroff/pcura,ROBO3D/CuraEngine,totalretribution/CuraEngine,Ultimaker/CuraEngine,totalretribution/CuraEngine,ROBO3D/CuraEngine