How to cast a variable to an Actor? C++

no need for casting, you are confusing pointers with the data.

FS_YourStruct YourStruct;

FS_YourStruct* StructPtr = YourDataTable->FindRow<FS_YourStruct>("ARowName", "");
if (StructPtr) {
  YourStruct = *StructPtr;
}

Introduction to Pointers in C++

2 Likes