fixed issue 107, casting a value to a std::map was not working correctly