Ma nn puoi fare un normale cast:

String[] value = (String[])ret.getValue();

?