Convert index value to integer type