We have to use BinaryFormatter.