I have an object which I must validate values off the problem, some of the attributes of the Objects are arrays of custom objects. Such that it will involve some boring down
As Oli Charlesworth points out, you can not use the variable name to cast. For a generic type, you will have to cast to Object
or Object[]
.
Also the Object
-> Object[]
cast looks illegal. You probably just want a straight cast like so:
public Object[] getAttribArray(RIORepeatingGrpEnum repeatingGrp)
{
Object[] grp = (Object[])getAttrib(repeatingGrp.toString());
return grp;
}