Do not cast the uvm_reg predict method to void, instead check the return value.
Argument:
The predict method may fail depending on whether it uses UVM_PREDICT_READ, UVM_PREDICT_WRITE or UVM_PREDICT_DIRECT, and ignoring the return value effectively hides whether the prediction was successful or not.