Fixed up conversion warnings in VS2010.