Test typecasting on instance rather than class itself
Merge pull request #14957 from akshay-vishnoi/test-cases

Test typecasting on instance rather than class itself