Private test cast