Oracle Message ORA-22833 - Must cast a transient type to a persistent type

ERRORMust cast a transient type to a persistent type
CAUSEAn attempt was made to use the transient type in the query result.
ACTIONCast the transient type to a structurally equivalent persistent type.