rdcost: explicit cast of return value, to prevent MSVC warnings

--HG--
branch : stable
Merge with stable