Fix message.parameters not being tested
Better cast for Any to String (Will crash more clearly when something is not Any)