title: Do CAST and CONVER works in MySQL?
body: <p>Do <code>CAST</code> and <code>CONVERT</code> functions work in MySQL?
  According to the documentation they should: <a href="https://dev.mysql.com/doc/refman/8.0/en/cast-functions.html" rel="nofollow noreferrer">https://dev.mysql.com/doc/refman/8.0/en/cast-functions.html</a></p>
  <p>But when I run</p>
  <pre><code>SELECT CAST(25.65 AS varchar);
  SELECT CONVERT(varchar, 25.65);
  </code></pre>
  <p>at the hackerrank.com with <strong>MySQL</strong> selected I receive an error:</p>
  <blockquote>
  <p>ERROR 1064 (42000) at line 1: You have an error in your SQL syntax;
  check the manual that corresponds to your MySQL server version for the
  right syntax to use near 'varchar)' at line 1</p>
  </blockquote>
  <p>In the same time the same commands work fine with <strong>MS SQL Server</strong>. Please tell me if I do not understand something or there is a bug in the site?</p>