SOAP-852: If already in the process of adding a parameter then don't add another at the same time.
SOAP-852: added cast