Save UserID to database using session to pass data

Anyone can tell me why i get this error?

You need to use CType instead of DirectCast, since you convert string to different type