Updated to latest Rust: 'as uint' for array indexing