Datatype reconstruction