When you unwrap it should enough, because python manage itself casting. UnwrapElement( v ) where v is you Dynamo view