Check if nullable when converting to strings only for nullable types

Signed-off-by: Bryan <mattheyan@gmail.com>