Cast scalars in string filter