The casts in VSFilter seem unrelated to this PR.