Define upcast