Anyone can tell me why i get this error?
You need to use CType instead of DirectCast, since you convert string to different type