Manually cast goTo index to integer