Temporary workaround to make boolean function weekly-typed again