Converts value to expected type
Converts value to expected type

Fixes openbmc/openbmc#1160

Change-Id: I5c36f5bc065a0b2fdac56c2ee92b0ed54258f238
Signed-off-by: Leonel Gonzalez <d8205574876768c6fa98718a4d1fef7f3d4dd8aa@us.ibm.com>

openbmc/phosphor-rest-server,openbmc/phosphor-rest-server