UKismetMathLibrary::Conv_BoolToDouble

Converts a bool to a float (0.0 or 1.0)