added cast checkers