Block that calls a user defined method won't snap into a socket that expects a boolean or number.
Until this is fixed, the workaround is to call the function and assign a variable to the return value. Then you can plug the variable into a socket that expects a boolean or number.