Check whether the argument is a peer message of specified type / command.
The argument to check
The command / type of the message to check against.
Check whether the argument is a peer message of specified type / command.