How to obtain the average of a Boolean column in PySpark?

I tried to use .agg (avg ("boolean_column")), but got the error:

"the average of the function requires numeric, not Boolean types"

How can I get the average of that column?