added casting to the parameters the listener is pulling from the
simulation.