How can I fix this error: OnCollisionStay This Message Parameter has to be of type: Collision

I dont understand can somebody help?

void OnCollisionStay(Collider2D col)
//line with error below
        if( == "Water")

The error is “Script error: OnCollisionStay
ThisMessage Parameter has to be of type: Collision”

It’s as the message states: the parameter has to be of type ‘Collision’, not Collider2D. See the script reference.

For 2D use the 2D variants of physics methods and assets. In this case: OnCollisionStay2D.

Ok but im using 2d colliders and Im worried it wont work so will it work on 2d colliders or just 3d?