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
a previously loaded tag.
0 on success; error code otherwise