"nogil" for C++ casts
Merge pull request #330 from larsmans/nogil-casting

"nogil" for C++ casts