diff --git a/core/commands2/id.go b/core/commands2/id.go
index 8d9c773392fb86c2369c848bae88275d583d4bd0..ba8f9c5d0d94f901b7d1e3e674a811c6b8f882f8 100644
--- a/core/commands2/id.go
+++ b/core/commands2/id.go
@@ -52,10 +52,7 @@ if no peer is specified, prints out local peers info.
 			return printPeer(node.Identity)
 		}
 
-		pid, ok := req.Arguments()[0].(string)
-		if !ok {
-			return nil, cmds.ClientError("Improperly formatted peer id")
-		}
+		pid := req.Arguments()[0]
 
 		id := peer.ID(b58.Decode(pid))
 		if len(id) == 0 {