Revert "Fix illegal data type conversion"

This reverts commit 2802af1fb3d6aa56ce5144624dbd51ef86fbf2d5.