title: How do I cast a type to a class variable in PHP
body: <p>I know you don`t have to specify type for PHP variables, but can this be done ? No initializing, just type casting.</p>
  
  <pre><code>class A {
      ....
  }
  
  class B {
  
    public var foo= A;
  
  }
  </code></pre>
  
  <p>Thank You !</p>