Ensure index value is an integer