Ah, now I see. I just checked the stable release sources and there TimeStampToMSecs function returns a value of comp type. In trunk it has been changed to Int64 and indeed requires a cast. I will report this in the bugtraker.
..edit..
The problem has already been solved in trunk, and I accidentally use old sources... Sorry for the noise.