         manager:DManager,
         completion:@escaping((DSession) -> ()))
     {
-        manager.fetch(entity:DSession.self)
-        { [weak self] (data:[NSManagedObject]) in
+        manager.fetch
+        { [weak self] (data:[DSession]) in
             
             guard
                 
-                let session:DSession = data.first as? DSession
+                let session:DSession = data.first
                 
             else
             {

        manager:DManager,
        completion:@escaping((DSession) -> ()))
    {
        manager.create(entity:DSession.self)
        { (data:NSManagedObject) in
            
            guard
            
                let session:DSession = data as? DSession
            
            else
            {
                return
            }
            
            manager.save
            {

import Foundation

extension MSession
{
