Change warning message
Add implicit conversion for backward compatibility