Fixed missed cast on original object.
Merge pull request #55 from nodeca/src_cast_fix

Fix cast option.