GetType()

Example 1:

var objType = GetType()
// will return "Page"

Example 2:

var objType = welcome.GetType()
// will return the type for the object named 'welcome' e.g. "Button"
if (welcome.GetType() == "Button")
{
 welcome.SetState(true)
}