Added the 'union' constraint for the input parameter of the method call.