Is there any way to cast WebElement to testObject?

Is there any way to cast WebElement to testObject?