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

Thank You Sir very very much for help, this solution is very perfect and working very fine :slight_smile:

void AWeaponItem::SetDefaults()
{
	if (const UDataTable* DT_Weapon{ LoadObject<UDataTable>(GetWorld(), TEXT("/Game/Tables/DT_Weapon")) })
	{
		if (const FST_Weapon * OutRow{ DT_Weapon->FindRow<FST_Weapon>(FName(ID), "") })
		{
			if (OutRow)
			{
				Datas = *OutRow;
			}
			/*Set the basic properties and sub meshes of the weapon mesh*/
			SetDefaults(EItemType::E_Weapon, Datas.Name, Datas.StaticMesh, Datas.Sight);
		}
	}
}