# Slate AssetPicker SObjectPropertyEntryBox .ObjectPath () FString to FString cast error

**URL:** <https://forums.unrealengine.com/t/slate-assetpicker-sobjectpropertyentrybox-objectpath-fstring-to-fstring-cast-error/482553>\
**Category:** UI\
**Tags:** fstring, unreal-engine, delegate, slate, Plugins, question\
**Created:** [April 27, 2021, 6:21pm UTC](https://forums.unrealengine.com/t/slate-assetpicker-sobjectpropertyentrybox-objectpath-fstring-to-fstring-cast-error/482553 "2021-04-27T18:21:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crakmaks](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crakmaks](https://forums.unrealengine.com/u/Crakmaks)\
**Post date:** [April 27, 2021, 6:21pm UTC](https://forums.unrealengine.com/t/slate-assetpicker-sobjectpropertyentrybox-objectpath-fstring-to-fstring-cast-error/482553/1 "2021-04-27T18:21:58Z")

</div>

Hey everyone,  
I’m still trying to get my assetpicker for my plugin working. I want to see the chosen asset and therefore need to provide it with an ObjectPath. It expects a FString my delegate is of type FString and it’s not working. What is the problem here?

```
SNew(SObjectPropertyEntryBox)
			.OnObjectChanged(this, &FMyClassDetails::ModelChange)
			.AllowedClass(UMyModelClass)
			.DisplayThumbnail(true)
			.ObjectPath( &FMyClassDetails::GetModelPath)

```

Here is the delegate:

```
FString FRealCameraDetails::GetModelPath() 
{
	if (ModelBlueprintAsset.IsValid())
	{
	
		return ModelBlueprintAsset.ObjectPath.ToString();
	}
	return "";
}

```

error C2440: ‘type cast’: cannot convert from ‘const OtherType’ to ‘ObjectType’ with[OtherType=FString (\_\_cdecl FMyClassDetails::\* )(void)] and [ObjectType=FString]

Any help is much appreciated!

---

<div class="post-metadata">

**Author:** ![WaqarY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WaqarY](https://forums.unrealengine.com/u/WaqarY)\
**Post date:** [September 27, 2022, 4:29pm UTC](https://forums.unrealengine.com/t/slate-assetpicker-sobjectpropertyentrybox-objectpath-fstring-to-fstring-cast-error/482553/2 "2022-09-27T16:29:07Z")

</div>

Hello. Did you find a solution for this? I have the same issue, but for SNew(SBox).WidthOverride(). Passing a delegate into the property gives this error.
