CastExpressionFix

Previous attempt: https://github.com/JetBrains/kotlin/pull/254