[ABAP] Typecast mit Cast-Operator

DATA oref1 TYPE REF TO c1.
DATA oref2 TYPE REF TO c2.

TRY.
    oref2 ?= oref1. " ?= ist der Cast-Operator
    
    CATCH cx_sy_move_cast_error.
      ...
ENDTRY.