Added typecase.