/Engine/Source/Editor/UnrealEd/Public/Kismet2/BlueprintEditorUtils.h
Checks if pin type stores proper type for a variable or parameter. Especially if the UDStruct is valid.
if type is valid
static bool IsPinTypeValid ( const [FEdGraphPinType](API\Runtime\Engine\EdGraph\FEdGraphPinType) & Type )