Let record message be of any type

Allowing any value for a message gives Handlers more flexibility to do what they want with the record.

For example an array message that is encoded using the JsonFormatter.

This doesn't actually break any tests so I assume the cast is not needed.