I don't think that casting has been implemented for Python yet, if it was it would go here or here.
If you are able to use IronPython you can use the C# bindings which have a larger feature set. Otherwise, we'll just have to add a feature request for this.