convert string representation bool value to bool type