remove int cast when use operator as index