Retrieves the attribute at the specified index (non-constant version).
Pointer to the attribute at the given index.