Use System.Convert instead of casting (casting doesn't work)