Change model type from record to class.