Made size_t assignment check work on casting too.