title: Type Checking In Pascal
body: <p>I'm just wondering how it's possible to do type checking in pascal? I have been searching for hours now but I haven't been able to find anything useful. </p>
  
  <p>Example:</p>
  
  <pre><code>var 
  number: Integer;
  
  begin
    write('Enter a number: ');
    read(number);
  
    if {How am I supposed to check if 'number' is an Integer here?}
    then writeln(number)
    else writeln('Invalid input')
  end.
  </code></pre>