How to get a reference from an array? (not a copy)