Test XmlSerialization of element that requires implicit conversion.
Covers #20403.
ImplicitConvert was using method with wrong parameter and return type.
Changed method ImplicitConvert to internal static.
When needed serialized objects are now implicitly converted.
Fixes #20403.
Merge pull request #1270 from esdrubal/xmlimplicit

When needed serialized objects are now implicitly converted.