public void Serialize(IMessage[] messages, Stream stream) { _serializer.Serialize(messages.Cast<NServiceBus.IMessage>().ToArray(), stream); }