fix casting and docblock for 'boolean', should be 'bool'