Fix a few various typecasting bugs.
Fix a few various typecasting bugs.

pkg/sftp,ScriptRock/sftp,jtwatson/sftp,DrJosh9000/sftp,fuchsia-mirror/third_party-github.com-pkg-sftp,fuchsia-mirror/third_party-pkg-sftp,akupas/sftp