Python Explicit Type Conversion In Cpp