How to get boolean value from DataBase?

Title. I can’t figure it out and there’s no tutorials or other forum posts anywhere.

Hi! Can you check if this answers your question?

If no, can you explain what problem you’re trying to solve?