what is the effective type of those otherwise? numpy scalars? If so I think it's better to keep the cast to Python scalars to get a pure python description of the tree.