Allow casting values in Python space (Issue #91)