Coloque os parenteses... eh um metodo :)

 

Cadastro value =

(Cadastro)getServletContext().getAttribute("Cadastro");

Responder a