Fixed the cast command error