[Tests] Added some casts that were needed by XUnit
[Tests] Added some casts that were needed by XUnit

X-Sharp/XSharpPublic,X-Sharp/XSharpPublic,X-Sharp/XSharpPublic,X-Sharp/XSharpPublic,X-Sharp/XSharpPublic