title: Convert Parameter from String to Number in Cloudformation Template
body: <p>Can I convert a parameter of type string to number in Cloudformation ?</p>
  
  <p>The situation is, </p>
  
  <p>I want to define DedicatedMasterCount in AWS Elasticsearch resource and it needs a Number.</p>
  
  <p>I define a parameter called DedicatedMasterCount with type Number. then refers to it</p>
  
  <p>for example:</p>
  
  <pre><code>DedicatedMasterCount:
    Fn::If:
    - isDedicatedMasterEnabled
    - !Ref DedicatedMasterCount
    - AWS::NoValue
  </code></pre>
  
  <p>but !Ref converts Number directly to String automatically, which cause a error "Encountered non numeric value" resulting a failure by building stack</p>