implemented toByte() methods
Merge remote-tracking branch 'origin/master'