▲ | colejohnson66 4 days ago | |
Even in a strongly typed language like Java or C#, nothing stops `(string)(object)42`. It all compiles and fails at runtime, like TypeScript. No matter what language you’re in, the second you use a cast, you’re asserting to the compiler that you know more than it. |