Skip to content
Discussion options

You must be logged in to vote

Why not use a direct cast, i.e.?:

var x = (SomeType)obj;

It's faster, too, IIRC.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@CyrusNajmabadi
Comment options

@yaakov-h
Comment options

@momvart
Comment options

@timcassell
Comment options

@AartBluestoke
Comment options

Answer selected by momvart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants