Visual Studio 2005: Fixed type conversion warnings.