cast index as Number