Add: escape($value, $type) method