private casting