Cosmetics: Remove two useless casts.
Fix wrong display when toggling between remaining and elapsed time.