java.util.HashMap cannot be cast to org.openqa.selenium.WebElement

How do I resolve this issue

Returned value cannot be converted to WebElement
java.util.HashMap cannot be cast to org.openqa.selenium.WebElement