title: Can we cast a generic object to a custom object type in javascript?
body: <p>For example, I already have this object somewhere in the code, it is a generic object:</p>
  
  <pre><code>var person1={lastName:"Freeman",firstName:"Gordon"};
  </code></pre>
  
  <p>I have the constructor for a Person object:</p>
  
  <pre><code>function Person(){
   this.getFullName=function(){
    return this.lastName + ' ' + this.firstName;
   }
  }
  </code></pre>
  
  <p>Is there a simple syntax that allows us to convert person1 to an object of type Person?</p>