issue #2790:Resolve some errors of basical conversion functions