      
      - Returns: Object that confroms with `UserType` with informations about the current user or `nil`.
     */
-    public static func currentUser<T:UserType>() -> T? {
+    public static func currentUser() -> UserType? {
         return NOPersistentStore.cacheWithId("UserManager").serializableForKey("User")
     }
     

     
     - Parameter user: The user object that conforms `UserType`.
    */
    public static func setCurrentUser<T:UserType>(user:T) {
        NOPersistentStore.cacheWithId("UserManager").setSerializable(user, forKey: "User")
    }
    

//
//  UserManager.swift
//  UserManagerType
//
//  Created by Jakob Mygind on 18/08/15.
//  Copyright © 2015 Nodes ApS. All rights reserved.
//

import Foundation
import Serializable
import Cashier

public protocol UserManagerType {
    associatedtype UserType: Serializable
}

public extension UserManagerType {
    
