decode bool to interface