title: Convert char input to user defined table type and call one stored procedure from other stored procedure?
body: <p>In first stored procedure testList is user defined table type</p>
  
  <pre><code>CREATE PROCEDURE [working].[test1] (@input1 int, @input2 testList READONLY) AS
  BEGIN
  
  // do some working
  
  END
  GO
  
  CREATE PROCEDURE [working].[test2] (@input3 int, @input4 char) AS
  BEGIN
  
  // How can i convert char input4 to user defined table input testList 
  // I want to do that conversion because ,here i want to call stored procedure test1
  
  EXEC [working].[test1] @input1 = @input3 , @input2 = CAST(@input4 AS testList);
  
  // is this correct way to call ?
  
  END
  GO
  </code></pre>