PERF: fixed int64 indexing perf issue when conversion to int64
Merge pull request #3331 from jreback/index_perf

PERF: fixed int64 indexing perf issue when conversion to int64