Add OMERO_API to all upCast declarations