add explicit conversions to reduce warnings