ck is a TextWriter object and you're passing it to the StartActivity method - that's not valid and that's why you get the exception that a TextWriter can't be cast to an Intent.
(StartActivity is expecting an Intent or Activity to be passed to it).
Code:
Dim ck As TextWriter
StartActivity(ck)
Martin.