Use implicit type casting operator for serialization.