i literally just dont know how to call a function from another class :/

where is that Actor keyword in the parentheses coming from?

this is basically what I want do:

AItems* Items = Cast<AItems>();

if (Items)
{
Items->DoStuff();
UE_LOG(LogTemp, Warning, TEXT(“Cast was success”));

}

i don’t know what to put inside parentheses