Get the tagged object of a tag
This method performs a repository lookup for the given object and returns it
pointer where to store the target
0 on success; error code otherwise