Added typecheck to .clamp operations