long[] stateVector = null;
if (sampleObj instanceof long[]) {
stateVector = (long[]) sampleObj;
} else {
throw new InvalidDataStorageSetupException(
"The data has not been stored in a vector. This criterion cannot deal with different data types so far.");
}
double sample = stateVector[observedSpecies];