Coerce cursor to integer