UClass::HasAnyCastFlag

Used to safely check whether the passed in flag is set.