emObjToStruct implemented