Recovery of data types from binary