adding info about valid object type to TypedRecordOutputStream.writeObject(obj)