[4.2] Database : remove double if

Please leave the space between the typecast and the variable name.