You should almost definitely be using Generics instead of simply dealing with Objects- that way the user can still populate your data structure with anything, but you still have some semblance of...