Force cast of the duration to milliseconds