some other minor performance improvements to mssql type_cast

suggested by @tduehr