<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def bwc_bool_transform_from(cls, x):
 """ Read boolean values from old config files correctly and interpret 'True' and 'False' as correct booleans. """

        if x.lower() == 'true':
            return True
        elif x.lower() == 'false':
            return False
        return bool(int(x))