java.lang.String Error

Hi,
Can you please guide me about the below issue ? I am receiving the java.lang.String error !!
I am trying to click on the link “Home”. Please suggest.

Step Definition Code:
char hom
hom = WebUI.getText(findTestObject(‘Object Repository/Main_Scenario/Page_ATT ABCs Consolidated Invoice Summary/a_Home’))

Error
User validate menu items Home View Govt Bill Govt Dispute Govt Reports Govt Inquiry Networx Transition1 FAILED.
Reason:
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object ‘Home’ with class ‘java.lang.String’ to class ‘char’
at GMPPortal.User_validate_menu_items1(GMPPortal.groovy:109)
at ✽.User validate menu items Home View Govt Bill Govt Dispute Govt Reports Govt

to click on something use

WebUI.click(findTestObject(‘Object Repository/Main_Scenario/Page_ATT ABCs Consolidated Invoice Summary/a_Home’))

if you want text from object, define local variable either by def or String

def hom
// Srting hom
hom = WebUI.getText(findTestObject(‘Object Repository/Main_Scenario/Page_ATT ABCs Consolidated Invoice Summary/a_Home’))

Thank You for your help.