Fixed ClassCastExceptions
Merge pull request #34 from jtakakura/master

Fixed ClassCastExceptions related to the new delegate adapter classes