pace(duration:String, unit: TimeUnit = {}) gives exception Can't cast value 500 of type class java.lang.String into int

Hi,

I am trying to use pace with the following parameters,

pace("500", TimeUnit.MILLISECONDS)

I believe I am following what is expected.  Please let me know what is the right syntax.

Thanks,
Javier