Use traits to identify message data types