Check whether the argument is a debug message of specified type.
The argument to check
The type of the message to check against.
Check whether the argument is a debug message of specified type.