Removed previous method, now using type checking on managedobject class properties instead, and not doing conversion