Add a class helping with casting interfaces between ClassLoaders

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>