removed typecase