I know you can use C++ keyword \'explicit\' for constructors of classes to prevent an automatic conversion of type. Can you use this same command to prevent the conversion
No. explicit prevents automatic conversion between specific classes, irrespective of context. And of course you can't do it for built-in classes.
explicit