Add explicit casts to avoid warnings on vc8.  Fixes #5762.

svn path=/trunk/boost/random/; revision=82940