Fixed try_convert function bug