I have created and attached a test case where the implicit reference cast function is not being called. The test should integrate into your test projects.
Forgive me for not describing the problem sufficiently in this post. The attached example should describe all the details.
Let me know if you have any questions.