fix type assertion
Merge pull request #27 from ooyala/fix_type_assertion

fix type assertion