---
title: "difference between directcast and ctype?"  
description: "difference between directcast and ctype?"  
author: "Anonymous User"  
published: 2018-04-02  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/23372/difference-between-directcast-and-ctype  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# difference between directcast and ctype?

DirectCast is used to convert the type of an object that requires the run-time type to be the same as the specified type in DirectCast.

Ctype is used for conversion where the conversion is defined between the expression and the type.

## Answers

### Answer by Anonymous User

DirectCast is used to convert the type of an object that requires the run-time type to be the same as the specified type in DirectCast.

Ctype is used for conversion where the conversion is defined between the expression and the type.


---

Original Source: https://www.mindstick.com/interview/23372/difference-between-directcast-and-ctype

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
