remove type conversion warnings