pass the type to Message.[] constructor