Ensuring currentDuration is of type 'int'

PLAT-2283