Fixed another casting error in carsim