When using the Cast activity, the default name of the casted object is 'Variable' and you have to set the name of the casted object yourself, but in my experience, the name will be the name of the specialization 99,99% of the time. So please set the name of the Casted object to the name of the specialization by default :)