Fixed the casting error in the OMNeT++ Simulation.