Cannot convert to unityEngine.GameObject

I am encountering two errors

Assets/checkPaper.js(12,64): BCE0022: Cannot convert ‘paperScript’ to >‘UnityEngine.GameObject’.

Assets/checkPaper.js(14,25): BCE0019: ‘theMessage’ is not a member of >‘UnityEngine.GameObject’.

I have been shifting around where to put the variable and trying to make it public. I tried including it in the Start() function and changing Start() to Awake(). I’ve tried assigning it in the start/awake but each thing (whether in the update, start/awake, or outside of all the fuctions) comes with a different error. The only instance in which I got it to work forced more errors to occur that prevented the game from fucntioning correctly after, so I backed up and tried to do it as the debug console instructed me (in the start/awake) but nothing has changed.

Anything I searched did not bring up results accurate (or modern) enough to be useful (though I did try some of the ideas involved in each).

#pragma strict

var paperImage : GameObject;
var paperSource : GameObject;


function Start () {
	paperImage.SetActive(false);
	paperSource = gameObject.Find("starPaper").GetComponent(paperScript);
}

function Update () {
	

	if (paperSource.theMessage == true){
		paperImage.SetActive(true);	
	
	}
}

So how do I fix this error?

paperSource should have the type paperScript and not GameObject (see line 4)

You should declare the variables correctly. It must be type of what you want to assing to it.

 var paperSource : paperScript;