well, i faced the same problem, and with some search i found this function helps in casting a double value into a TUint.
I solved it with casting first into TInt and then to a TUint, try using:
TInt nTime = (TUint)(TInt)dTime
TInt nTime = (TUint)dTime
this worked with me.