CodedOutputStream out = CodedOutputStream.newInstance(baos);
if (t instanceof String) {
out.writeString(wrappedString, (String) t);
} else if (t instanceof Long) {
out.writeInt64(wrappedInt64, (Long) t);
} else if (t instanceof Integer) {
out.writeInt32(wrappedInt32, (Integer) t);
} else if (t instanceof Double) {
out.writeDouble(wrappedDouble, (Double) t);
} else if (t instanceof Float) {