The code has an implicit type conversion that may fail at runtime. This indicates that some values of data in the original data type do not have an obvious analogue in the target conversion type.
Using explicit type conversions, which allow for lossy conversions, makes code more reliable and much less likely to fail at runtime.
To correct this error
Make sure that the data provided is compatible with the data type to which it is converted.
Use explicit type conversion when converting data from one type to another.