Fix casting warnings under Intel Compiler