Core support of the "Cast To Type" and "Restore Default Type" actions.
The implementation of the "Cast To Type" and "Restore Default Type" actions.
Refresh the type of variable when casting.