Parse cast function completed for mobile and desktop