How to check what type of Collider has been hit?

I have a CircleCollider2D and a BoxCollider2D on my character and when the character collides with a platform that has a trigger on it I want to check if it was the BoxCollider2D that hit.

I was trying this and getting an error:

void OnTriggerEnter2D(Collider2D col)   
	{
		if (col.GetType() == BoxCollider2D) {
                ...

Try is

if (col is BoxCollider2D)

Actually the best way to do this is:

BoxCollider2D collider = col as BoxCollider2D

If (collider != null)
{
//Perform Actions Here
}

.col.collider.GetType().ToString() == “UnityEngine.BoxCollider2D”