In most cases, both .ico and .icon files are essentially of the same file format and just have different file ending, so no icon to ico conversion is actually required - just rename the suffix.
If that does not help, use any of the available icon making programs or dedicated editors and conversions to convert icon to ico.