Change indices to Integer instead of Int