Verify the type before we cast to it (Fix #186)
Verify the type before we cast to it (Fix #186)

internetisalie/lua-for-idea,internetisalie/lua-for-idea,internetisalie/lua-for-idea,internetisalie/lua-for-idea