Oracle Message PLS-00425 - in SQL, function argument and return types must be SQL type

ERRORin SQL, function argument and return types must be SQL type
CAUSEWhen a cursor variable was declared as the formal parameter of a
ACTIONChange the parameter mode from OUT to IN or IN OUT.