Why am I getting error c2440?

Hello community. So I am currently finishing up the c++ tutorial videos and I am currently trying to get UMG working.
I am on:A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums

I have gotten everything up to 11:30 working. I went through explorer to generate the project files so that I could include “Blueprint/UserWidget.h”

For some reason through I cannot assign the CurrentWidget to the created widget of the HUDClass. To be percise I am getting the following error:

error C2440: ‘=’ : cannot convert from ‘UUSerWidget *’ to ‘UUserWidget *’

//in the cpp file
if (HUDWidgetClass != nullptr)
		CurrentWidget = CreateWidget<UUSerWidget>(GetWorld(), HUDWidgetClass);

//in the h file

	//the widget class to use for our hud screen
	UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Rates", Meta = (BlueprintProtected = "true"))
	TSubclassOf<class UUSerWidget> HUDWidgetClass;

	//the actual instance of the hud
	class UUserWidget* CurrentWidget;

Does anyone have any advice/idea about the issue?

Wow, I feel so stupid now. TY

Hey cbennett2121-

In line 12 of the code you posted you have “class UUSerWidget”. Because the code is case sensitive it doesn’t understand what UUSerWidget is. If you make the “s” lowercase you should be able to compile successfully.