Cast run to int where used as an index