Merge "Implement checkcast for optimizing."