Check parameter type in 'with' functions.