Simple schema plugin for toObject