Community Tutorial: Updating Action RPG from UE4 to UE5

I do get just error with part:

3.1 RPG_TargetType.cpp:

Line 26

Changes from: OutActors.Add(const_cast(EventData.Target));

To: OutActors.Add(const_cast(ToRawPtr(EventData.Target)));

Error message:

1>RPGTargetType.cpp(26): error C2760: syntax error: '(' was unexpected here; expected '<'
1>RPGTargetType.cpp(26): error C2059: syntax error: '('

Still thank you for helping out.