cast() method in DiagnosticFactory
Buildserver auto merge