Fixed conversion warnings in Visual Studio