SFML and Collision Detection

Helllo, I am user of SFML library and I was advised to try Box2D for collision model.

I looked throught documentation and saw that function:
Code:
bool b2TestOverlap
bool b2TestOverlap    (    const b2Shape *     shapeA,
      const b2Shape *     shapeB,
      const b2Transform &     xfA,
      const b2Transform &     xfB   
   )

shapeA and shapeB are the same as sprites right, just need to cast it?
What about two last parametrs?
Is it okay if I just use this function in game loop, is it everything that needs to be done to test collisions or maybe first I need to inicialize it or something?
And will C++ version of Box2D works with SFML(C version)?

Original thread: https://box2d.org/forum/viewtopic.php?t=5889