Checking types on messages to extract the things we care about.