added convenience method for wrapping indexable objects and parsing