Insert explicit casts to try appease overload resolution in the buildbots