How to get and verify links within a certain object

Got it, now updated with
but start getting error:
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object ‘’ with class ‘java.lang.String’ to class ‘java.util.List’

fixed it by this, that you have suggested in other queries-
List allURLs = WebUI.getAllLinksOnCurrentPage(true, )
println ('Total links on page: ’ +allURLs.size())

	WebElement element = WebUiCommonHelper.findWebElement(findTestObject('Object Repository/Progression/Management/StudentPLinkVerification/MainMenuLinks'),20)
	List URLs = Arrays.asList(element.getAttribute('href'))
	print URLs

now the issue , in output I am getting only first link, not other . I have many more links on page

Hello , thanks for information)