Click here to Skip to main content
14,932,748 members
Articles / Programming Languages / Visual Basic


35 bookmarked

DirectCast vs. CType

Rate me:
Please Sign up or sign in to vote.
4.30/5 (31 votes)
8 Apr 2007CPOL2 min read
When to use DirectCast vs. CType.



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Tim Greenfield
Software Developer (Senior)
United States United States
I am a software architect and engineer who has been working in the industry since 1994. Although I officially started writing software many years earlier at age 11 by authoring games, graphics demos, or whatever I found interesting. I even landed my first consulting job at age 16 implementing a newly invented mathimatical algorithm for a team of researchers at the local University.

I've designed and implemented hundreds if not thousands of applications: client, web, and hybrid of all scales and was a contributing author to the Black Belt programming column of Visual Basic Programmer's Journal.

My goals when coding are always to write clean, reusable and optimized code using the latest and technology, tools and techniques.

Comments and Discussions