forked from: forked from: forked from: Vector index casting

