Get Children from SWidget build error

Hi,

I am trying to get all children from my SWindow , but I get a build error for my following code

> TSharedRef<const SWidget> pContent = pDialogMainWindow->GetContent();

FChildren *pChild = pContent->GetChildren();

Build Error
Error C2662 ‘FChildren *SWidget::GetChildren(void)’: cannot convert ‘this’ pointer from ‘ObjectType’ to ‘SWidget &’