how do i fix this..error CS0266: Cannot implicitly convert type `object' to `bool'. An explicit conversion exists (are you missing a cast?)

error CS0266: Cannot implicitly convert type object' to bool’. An explicit conversion exists (are you missing a cast?)
this is my code line’

void ChangeSpeed()
{
currentMoveSet = (int)cc.animator.GetFloat(“MoveSet_ID”);
var strafing = cc.isStrafing;
if (strafing)

what should I do then