Fixed a general view cast parameter bug