Replaced serialization to conversion