Add support to bool type

Add the bool support to the get function