fix class casting in method proxy
Merge pull request #7 from jessevarnado/add_documentation

fix class casting in method proxy