Fix #536: Check type of arguments of exported methods
Merge pull request #600 from gzm0/export-cast

Fix #536: Check type of arguments of exported methods