Do we use modport of an interface when connecting to UVM test?

In reply to nikhil.n:
If you face a compile error, then it might be caused by a typo or not considering case sensitivity of SV.
A connect error would be indicated a run time 0.