bins: searchsorted after coercing to right type