convert native object type to Schema.Types.Mixed for mongoose