STY: Use `.astype`'s `copy` kwarg in `np.tri`

Replace an explicit type check with setting `copy=False` in call to `astype`.
Merge pull request #4750 from jaimefrio/tri-sty

STY: Use `.astype`'s `copy` kwarg in `np.tri`