Testing cast operator