Changed convertBinData to return a typed Python object.