fix Checkcast