Only deprecate cast on base