set render custom depth

Hi! Why my Set render custom depht with value=0 is not working?
5943058421b601ecc34e52bb4e1e49ad00c90605.jpeg

You are using a reference that is invalid because your casting has failed

You will have plug to the Target pin the reference before the cast node, plugged into Object pin.