else if (fieldClass == int.class)
cachedField = new ObjectIntField(ser);
else if (fieldClass == long.class)
cachedField = new ObjectLongField(ser);
else if (fieldClass == float.class)
cachedField = new ObjectFloatField(ser);
else if (fieldClass == double.class)
cachedField = new ObjectDoubleField(ser);
else {
cachedField = new ObjectField(ser);
}