显式类型转换 [计] explicit type conversion
- 这就避免了一些需要显式类型转换的情况。
This eliminates the need for explicit casting in some situations. - 这个异常是由显式类型转换抛出的,因为测试用例试图把类型为 String 的东西转换成 Integer。
The exception is thrown by the explicit cast because the test case is trying to convert something of type String to an Integer. - 如果使用允许转换损耗的显式类型转换,将会使代码更为可靠,并大大降低代码在运行时失败的可能性。
Using explicit type conversions, which allow for lossy conversions, makes code more reliable and much less likely to fail at runtime.