Add convert method to KeystoneIdentity