pub fn try_index_to_u32(index: &str, name: &str) -> Result<u32, Error>
Attempts to convert the given index string to a u32.