nativecast added

nativecast has been added, it makes us able to cast things conditionally.
Merge pull request #45 from sergot/master

nativecast added