Reflection caster

See the issue #3.