Coerce keep to an int where needed