Fixed json cast to Mesh crash.

mesh comes from Json and is Dynamic, not Mesh (crashed on native target)
Merge pull request #6 from labe-me/patch-3

Fixed json cast to Mesh crash.