Fix right this check

This is a supplemental fix for [dmd/pull/1687](https://github.com/D-Programming-Language/dmd/pull/1687).

- core.time:

    Casting *type* `(cast(T) TickDuration)` was invalid.