TypeSystem ts = cas.getTypeSystem();
Type fsType = fs.getType();
if (ts.subsumes(ts.getType("uima.cas.FloatList"), fsType)) {
return (floatListToArray(fs));
}
if (ts.subsumes(ts.getType("uima.cas.IntegerList"), fsType)) {
return (integerListToArray(fs));
}
if (ts.subsumes(ts.getType("uima.cas.StringList"), fsType)) {
return (stringListToArray(fs));
}