Fixed json cast to Mesh crash.

mesh comes from Json and is Dynamic, not Mesh (crashed on native target)