Design a Python program to convert all the characters of a string to upper case.
This is a sample sentence.
def to_upper(s):
    return s.upper()

result = to_upper("This is a sample sentence.")
print(result)