Fix for Casting Unit Test