Fix compiler warning on type conversion