fix checkcast